Re: Sending multiple files to an application
Re: Sending multiple files to an application
- Subject: Re: Sending multiple files to an application
- From: kai <email@hidden>
- Date: Fri, 26 Sep 2003 19:26:42 +0100
on Fri, 26 Sep 2003 10:24:45 -0600, Scott Lemke wrote:
>
I'm new to Applescript, and I have a question about sending multiple files to
>
an application. I am working with an application that builds a panorama out
>
of 3 image files. In the Finder, if I select 3 files and drag them onto the
>
app, it will create the panorama. I am trying to script this to work from
>
applescript, but I can't seem to get it to work. I've tried creating a list
>
of files with the path names such as: {Macintosh
>
HD:IMAGES:image1.jpg,Macintosh HD:IMAGES:image2.jpg,Macintosh
>
HD:IMAGES:image3.jpg} and sending that to the application, but it doesn't
>
work. Is there a way to simulate dragging the 3 images onto the app?
I suppose you could try something like this (modifying any quoted strings as
required):
-------------------------------------------------------
(Any wrapped lines abutting the left edge of the window
should be reconnected to the end of the previous line)
-------------------------------------------------------
--=================================================================
set fList to {alias "Macintosh HD:IMAGES:image1.jpg", alias "Macintosh
HD:IMAGES:image2.jpg", alias "Macintosh HD:IMAGES:image3.jpg"}
tell application "Finder" to open fList using application file (path to
application "Mystery App")
--=================================================================
---
kai
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.