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.



Hi Brett,

Have you tried something like...

set myApp to quoted form of POSIX path of (choose application)
set myFile to quoted form of POSIX path of (choose file)

do shell script ("open -a " & myApp & " " & myFile)


Mark


A few months back (if memory serves me correctly) someone was asking about
using AppleScript to drop a file onto a droplet. I'm now in need of such
code.


I have a PDF "Pre-Flight" droplet that I created from Acrobat 7 and I need
to have AppleScript drop a PDF (that the script just helped build) onto
this droplet. The results will be that the PDF is scanned and a log
report is produced. This is then read by AppleScript to look for errors.


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.


Any thoughts?

Cheers muchly,

Cojcolds

_______________________________________________ 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.