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.