Re: external parameter
Re: external parameter
- Subject: Re: external parameter
- From: kai <email@hidden>
- Date: Thu, 25 Sep 2003 01:24:40 +0100
on Wed, 24 Sep 2003 13:10:05 -0500, Martin Meneses wrote:
>
How I can to send external parameters to script, or how I can to set
>
variables from other script?
You could use properties for this, Martin. To demonstrate the general
principle, save the following couple of scripts as applications (modifying
any file paths as necessary) and then run them in turn:
-------------------------------------------------------
(Any wrapped lines abutting the left edge of the window
should be reconnected to the end of the previous line)
-------------------------------------------------------
--==========
-- Script A
--==========
property p : "apple"
display dialog p
--==========
-- Script B
--==========
set f to alias "Hard Disk:Desktop Folder:Script A"
set s to load script f
set s's p to (display dialog "Enter new text:" default answer s's p)'s
text returned
store script s in f replacing yes
--==========
---
kai
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.