Basic Applescript issue

I used the basic AppleScript suggested in the documentation, with changes as required (see below). I receive a message from Retrobatch saying The document “Retrobatch” could not be opened. Retrobatch cannot open files in the “Anything” format.

When I click OK on that dialog, Script Debugger reports an AppleScript Execution Error: “missing value doesn’t understand the “execute” message.” Suggestions?

Here’s the script I’m using:

tell application "Retrobatch"
	set d to open ((POSIX file "/Applications/Graphics/Retrobatch.app") as alias)
	tell d
		execute input items "/Users/bob/Retrobatch From Folder" output folder "/Users/bob/Retrobatch To Folder" workflow path "/Users/bob/Documents/GoodwheelChairs.org/Scale GWC Photos for Web Site.retrobatch"
	end tell
end tell

Wonder if it could be related to this.

Just found out that it works if I just delete the POSIX line and simply use

tell application "Retrobatch"
	execute input items "/Users/Bob/Retrobatch From Folder" output folder "/Users/Bob/Retrobatch To Folder" workflow path "/Users/Bob/Documents/GoodwheelChairs.org/Scale GWC Photos for Web Site.retrobatch"
end tell

This is of course different than what’s in the documentation. I’ve tried it on MacOS 10.13.6, High Sierra.

1 Like