Re: Target Application
Re: Target Application
- Subject: Re: Target Application
- From: "Marc K. Myers" <email@hidden>
- Date: Wed, 31 Jan 2001 17:32:38 -0500
- Organization: [very little]
>
Date: Wed, 31 Jan 2001 11:12:55 -0600
>
Subject: Target Application
>
To: email@hidden
>
From: email@hidden (AppleScript)
>
>
I have the following simple script
>
>
tell application "Finder"
>
activate
>
select file "00001458.png" of folder "Images"
>
open selection
>
end tell
>
>
I would like to add to this script that the file "00001458.png" be opened
>
by PictureViewer instead of the Application that created it.
>
>
How would I do this.
>
>
REASON:
>
>
I have 2000 images (all png files) in an Images folder. I have created a
>
FileMaker Pro database that will display the images, but right now, they
>
display in GraphicConverter, and I want them to open in PictureViewer
>
(since not everybody has a copy of GraphicConverter, but they do have a
>
copy of PictureViewer).
>
>
The only way I could do this in FileMaker is by an AppleScript (AppleEvent
>
wouldn't work).
>
>
So, now I need to know how to target a specific application to use to open
>
these documents.
>
>
thanks,
>
>
If any replies could be sent to email@hidden that would be
>
appreciated.
tell application "Finder"
open file "00001458.png" of folder "Images" using [optn-L]
application file id "ogle"
end tell
Where you see "[optn-L]", substitute the continuation character that you
get using that keyboard combo.
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[1/31/01 5:32:05 PM]