• 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: variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: variables


  • Subject: Re: variables
  • From: "Marc K. Myers" <email@hidden>
  • Date: Fri, 19 Jan 2001 10:25:57 -0500
  • Organization: [very little]

Super Julio wrote:
> Date: Fri, 19 Jan 2001 10:55:59 +0100
> Subject: variables
> From: Super Julio <email@hidden>
> To: <email@hidden>
>
> I'm writing a script to crop pages in Adobe Acrobat. The value of cropping
> (top, bottom, left, right) must be "the text returned" of a dialog.
>
> My problem is that the dialog displays with every document is opened (the
> script is a dropplet and I want use it with a lot of documents which are
> being cropped to the same size)
>
> But, how can I define a variable available at all my script?

If I understand your question, I think I've got an answer. You want
variables that you can set and which will stay in place for multiple
executions of a droplet application, right?

Build your script with property declarations for the variables you want
to keep "alive" between runs. Build a run handler, which is executed
when you double-click the applet's icon, to set the values of the
properties. The open handler, which executes when you drop things on
the icon, can then use these values and they will remain constant until
you execute the run handler again to change them.

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[1/19/01 10:25:01 AM]


  • Prev by Date: Re: ASCII
  • Next by Date: Re: ASCII
  • Previous by thread: Re: variables
  • Next by thread: Re: Variables
  • Index(es):
    • Date
    • Thread