• 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
Calling a variable in multiple scripts ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Calling a variable in multiple scripts ?


  • Subject: Calling a variable in multiple scripts ?
  • From: Nishanth <email@hidden>
  • Date: Fri, 5 Oct 2007 18:08:16 +0800

Consider I have 2 applescripts - script A and  script B.

Script A will contain applescript line -

set btnSave to a reference to button "Save" of window "myapp" -- Just referring a 'Save' button to click it later

Script B will refer this btnSave of Script A like this (I will call the script A at the start of script B)-

click btnSave -- Click on 'Save' button

Problem : On running the Script, it says variable 'btnSave' not declared .


Can anyone let me know how to call a variable from another script, without declaring the variable in the present script ?

Thanks,
Nishanth

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Calling a variable in multiple scripts ?
      • From: Wayne Melrose <email@hidden>
  • Prev by Date: Re: Bad Characters from UnicodeŠ
  • Next by Date: Re: Calling a variable in multiple scripts ?
  • Previous by thread: Re: confirm 150c287c562f9259a2b442c24205bea8e8b1b1c9
  • Next by thread: Re: Calling a variable in multiple scripts ?
  • Index(es):
    • Date
    • Thread