• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using AppleScript to drop a PDF file on a droplet.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: Using AppleScript to drop a PDF file on a droplet.
  • From: email@hidden
  • Date: Mon, 26 Jun 2006 13:18:02 +1100


Yes, I just dropped one onto AppleScript and had a look at the code.

Interesting though, each different droplet I looked at in Script Editor has the exact same code inside. How does Acrobat know which preferences to use (report type/preflight profile/etc)?

I tried renaming one of my profiles to "XXX" to see if it referenced the name of the file (when the droplet was created) as a reference but the droplet still ran as expected.

Coj

ps. This is what I have in each droplet:

-- This droplet processes files dropped onto the applet
on open these_items
        try
                process_item(these_items)
        end try
end open

-- this sub-routine processes files
on process_item(this_item)
        tell application "Finder"
                set myPath to path to me
        end tell
        tell application "Adobe Acrobat 7.0 Professional"
                activate
                «event PRFLPRFL» this_item given «class PATH»:myPath
        end tell
end process_item



Shane Stanley <email@hidden>
Sent by: applescript-users-bounces+brett.conlon=email@hidden

26/06/06 11:56 AM

To
AS users <email@hidden>
cc
Subject
Re: Using AppleScript to drop a PDF file on a droplet.





On 26/6/06 10:20 AM, "email@hidden" <email@hidden>
wrote:

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

These "droplets" are applications, so you can use the Finder's "open <alias
of PDF> using <alias of droplet>".

You can also open them in a script editor and you'll see handlers that show
how to script Acrobat to use them directly -- they actually work by running
Acrobat scripts; the key is to know the path to the droplet.

--
Shane Stanley <email@hidden>


_______________________________________________
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


 _______________________________________________
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

  • Follow-Ups:
    • Re: Using AppleScript to drop a PDF file on a droplet.
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Using AppleScript to drop a PDF file on a droplet. (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Using AppleScript to drop a PDF file on a droplet.
  • Next by Date: Re: Using AppleScript to drop a PDF file on a droplet.
  • Previous by thread: Re: Using AppleScript to drop a PDF file on a droplet.
  • Next by thread: Re: Using AppleScript to drop a PDF file on a droplet.
  • Index(es):
    • Date
    • Thread