Re: Image Events and Preview
Re: Image Events and Preview
- Subject: Re: Image Events and Preview
- From: Emmanuel LEVY <email@hidden>
- Date: Sat, 13 Feb 2010 19:38:35 +0100
Finder's "open" command has the "using" option to specify the app to
open the file with.
Emmanuel
On Feb 13, 2010, at 7:31 PM, Michelle Steiner wrote:
On Feb 13, 2010, at 11:05 AM, Martin Michel wrote:
I cannot tell you why Preview isn't scriptable, but can tell you
how to open JPG files with it:
How about this:
set the fileToBeOpened to choose file of type {"jpg", "jpeg"}
tell application "Finder" to open the fileToBeOpened
Of course, the Finder has to be set to open all JPG files with
Preview, but that's a one-time easy thing to do. And equally of
course, change the first line of the script as needed to identify
the file to be opened.
-- Michelle
--
Some people think computers need to be complicated. They really
have a tough time when it's not.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript-
email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
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