Re: Using a prompt value from another handler
Re: Using a prompt value from another handler
- Subject: Re: Using a prompt value from another handler
- From: kai <email@hidden>
- Date: Thu, 17 Nov 2005 02:34:31 +0000
On 17 Nov 2005, at 02:00, Brett Conlon wrote:
You understood what I needed to accomplish quite clearly and your
suggestions have now given me a working solution, THANKS!
Your welcome, Brett.
I'm still not sure, though, how you can use a value from a prompt
from one handler in another handler, as the examples you offered
brought the handler calls to within the same handler as the prompt
(therefore the values needed were present in the one handler) -
heh, does that make sense???
Perfect sense. Check out the first suggestion I made, and you should
see an example in there. This edited/annotated version might help to
clarify things slightly:
----------------
on open filelist
repeat with aFile in filelist
(* value returned from prompt in 'AskTitle' handler and
assigned to the variable 'replacement_title' here *)
set replacement_title to AskTitle(aFile)
(* value of 'replacement_title' passed to 'DoAllThis' handler here *)
DoAllThis(aFile, replacement_title)
ReplaceTitle(replacement_title)
end repeat
end open
(* value of 'replacement_title' received here *)
on DoAllThis(aFile, replacement_title)
-- various statements
if clientName is "FHE" then
(* value of 'replacement_title' used here *)
set replacement_catNo to AskCatNo(replacement_title)
-- more statements
end if
end DoAllThis
----------------
---
kai
_______________________________________________
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