Re: Using AppleScript to drop a PDF file on a droplet.
Re: Using AppleScript to drop a PDF file on a droplet.
- Subject: Re: Using AppleScript to drop a PDF file on a droplet.
- From: Mark Butler <email@hidden>
- Date: Sun, 25 Jun 2006 17:39:03 -0700
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:
This email sent to email@hidden