Re: when opening a selection, is there any way to specify the app
Re: when opening a selection, is there any way to specify the app
- Subject: Re: when opening a selection, is there any way to specify the app
- From: Charles Arthur <email@hidden>
- Date: Tue, 11 Sep 2001 11:19:57 +0100
On Tue, 11 Sep 2001 16:12:14 +1200, Andrew Simpson
<email@hidden> wrote:
>
well its not really an app.
>
>
i have an adobe action droplet which i would like to drop a whole pile of
>
images onto but i can't work out how to use the droplet as open selection
>
just opens photoshop itself...anybody have any idea's???
You're really going to have to start using those comma and full stop keys
sometime soon. Also putting yourself in the position of someone who doesn't
have your screen in front of them, and doesn't live inside your head, and
explaining it to them.
If I understand your question - you have some Photoshop images. You want
Adobe PShop to do something to them. It's a droplet.
So what's the problem?
Alternatively, if they aren't PShop images, then you can get them to open
in the program which created them by:
set the_selection to choose file
tell application "Finder"
open the_selection
end tell
The Finder looks up the creator code and looks for that app on your machine
(in the order - to answer something Michelle asked about a while ago -
starting from the disk that the file is found on, then the startup disk,
then other volumes). If it comes up with a blank it will ask you which app
to use.
I think the
Tell application "Finder
--do stuff
end tell
is the reason why you had the problems you posted before about..
>
can anybody help me with this. it doen't seem to make sense to me...
>
its like it doesn't even recognise the class???
>
when ever i try to do something with the file object eg...
>
new file with prompt "Open File"
..which should be "make new file with prompt..." AScript lines have to have
some sort of action or command in them..
>
or
>
>
set file_collection to every file of choosen_folder
This breaks on its own.
you have to look up the object model of "folder" - which you'll find in the
Finder dictionary.
By contrast
--tested
set chosen_folder to choose folder
tell application "Finder"
set file_collection to every file of chosen_folder
end tell
--works
..although IIRC there are bugs in the "every" word.
You were copying them straight out of the guidebook but omitting the Finder
"tell block". I think there's an embedded AScript if you view the modules
in the Help Viewer which will put the whole block, including Finder
commands, into the clipboard for pasting. But your method at least shows
you what does and doesn't happen when you have the Finder "wrapper"
Charles
----------------------------
http://www.ukclimbing.com : 1000+ British crags, 350+ British climbing
walls - searchable by distance and anything else you care to think of -
with weather forecasts for every one, plus maps, articles, news and
features. Plus Britain's busiest climbing discussion boards. And there's
even a cool shop attached.