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

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.

  • Prev by Date: A cleaner post: Folders are multiplying like rabbits...
  • Next by Date: Re: InDesign -- center image in frame
  • Previous by thread: Re: external parameter
  • Next by thread: Scripting problem
  • Index(es):
    • Date
    • Thread