Calling script inside another script
Steve Mills
smills at multi-ad.com
Fri Apr 18 13:11:51 CDT 2008
I cc'd you so you get the styled text, which I think will be stripped
by the listserver.
On Apr 18, 2008, at 12:57:58, Zach Manring wrote:
> Unless im completely blind, ive look through that script on my
> computer and
> I do not see where it would call information from another script.
> Maybe I
> have a past version. 2002 I think.
try
This part asks Creator for a reference to the Scripts Folder,
converts it to a path, adds the file name to the end, and finally
converts that to an alias.
set scriptPath to (((Scripts Folder) as string) & "Get 2 Values") as
alias
on error
display dialog "The script “Get 2 Values” was not found in the
“Scripts Folder” in the “MultiAd Creator Add-Ons” folder." buttons
{"Cancel"} default button 1 with icon stop
return
end try
This part loads the script file into a script object, then calls the
routine named "Get2Values" in that script object. It stores the result
in rep (short for reply) for later use.
tell application "Finder"
set utilScript to (load script scriptPath)
set rep to (Get2Values("Starting slant:", startSlant, "Ending
slant:", endSlant) of utilScript)
end tell
_________________________________________________________
Steve Mills Me: 952-401-6255
Senior Software Architect MultiAd
smills at multiad.com www.multi-ad.com
More information about the Creator
mailing list