Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using AppleScript to drop a PDF file on a droplet.




On 26 Jun 2006, at 01:20, email@hidden wrote:

I was hoping to launch the droplet then tell it to open a file but when
the droplet is launched without a PDF being dropped on it, it immediately
quits.

You might try something like this, Coj:

------------

set pdf_file to alias "path:to:your:new file.pdf"
launch application "name of your droplet"
tell application "name of your droplet" to open {pdf_file}

------------

---
kai


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden
References: 
 >Using AppleScript to drop a PDF file on a droplet. (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.