• 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
Getting a handler to use a value from a different handler?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting a handler to use a value from a different handler?


  • Subject: Getting a handler to use a value from a different handler?
  • From: Brett Conlon/HU/Music-AU/SONY <email@hidden>
  • Date: Tue, 18 Oct 2005 15:15:57 +1000


G'day,

Here goes my first question...

I have a droplet script that has a number of handlers in it.

The script first calls a handler to prompt the user to enter the title of the DVD they are creating packshots of (eg. "Aliens"). It then asks them for the catalogue number of the DVD title (eg. "12345").

After the script has told Photoshop to run a series of actions and save the resulting files into a folder on the desktop called PACKSHOTS another handler is called that searches the folder and replaces the word "Title" with the prompt results at the beginning... and similar for the catalogue number.

When I first added the "replace" handler code the prompt was part of it but I wanted to put the prompt at the very beginning of running the script, not at the end, and of course the replace handler has to be run after the files are all created. So I created a new handler [AskTitle()] to run at the beginning of the on run etc.

Now that the prompt is separated from the "replace" handler I can't figure how to get the variable replacement_string defined in the first handler to be associated with the replacement_string of the replacement handler.

I hope my explanation makes sense...

Thoughts?

Cheers,

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

  • Follow-Ups:
    • Re: Getting a handler to use a value from a different handler?
      • From: Christopher Nebel <email@hidden>
    • Re: Getting a handler to use a value from a different handler?
      • From: Eric C Saunders <email@hidden>
  • Prev by Date: Re: Intro from newbie [TAN]
  • Next by Date: Re: URL Access scripting in Tiger launches Classic
  • Previous by thread: Re: Intro from newbie [TAN]
  • Next by thread: Re: Getting a handler to use a value from a different handler?
  • Index(es):
    • Date
    • Thread