GraphicConverter 'open file'
GraphicConverter 'open file'
- Subject: GraphicConverter 'open file'
- From: Gil Dawson <email@hidden>
- Date: Thu, 08 Aug 2013 15:19:14 -0700
A folder contains a few .jpg files. The default "open with" parameter for each file is "Preview".
With GraphicConverter (V 8.7.1) already launched (to sidestep a timing issue), the following script:
tell application "Finder" to ¬ set theFiles to every file ¬ of folder (POSIX file "/Users/gil/Desktop/Picture Comparison/" as text)
repeat with aFile in theFiles tell application "GraphicConverter (1154)" to open aFile end repeat Opens all the files in Preview, not GraphicConverter. It also makes Preview frontmost.
However, changing one line as follows: tell application "GraphicConverter (1154)" to open file (aFile as text)Opens the files in GraphicConverter and does not make GraphicConverter frontmost.
Evidently, GraphicConverter interprets "open" differently from "open file".
I didn't see this in GraphicConverter's dictionary.
--Gil |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden