• 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
global variables
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

global variables


  • Subject: global variables
  • From: Isaac Ordonez <email@hidden>
  • Date: Wed, 26 May 2004 11:13:40 -0700

Ok,

I've read books on this, researched the heck outta it, and ever example I come up with says this should work but it doesn't. All I want to to declare the values I get from the keychain as global variables so they will work within my subroutines and inside "on clicked theObject" etc. but when I do the following:

global importpass




set importpass to my keychainpass("password") as string


on keychainpass(myvalue)
try
tell application "Keychain Scripting"
tell keychain 1
unlock
set theKey to first key whose name is "Add User Info"
set endvalue to (password of theKey) as string
return endvalue
end tell
end tell
end try
end keychainpass

on clicked theObject
tell window of theObject

......

I get a variable "importpass" not defined. Is there something stupid I'm missing?

Isaac Ordonez
Technology Support Specialist II
San Rafael City Schools
415.302.8114
_______________________________________________
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.


  • Follow-Ups:
    • Re: global variables
      • From: Helmut Fuchs <email@hidden>
    • Re: global variables
      • From: Gnarlodious <email@hidden>
  • Prev by Date: Re: A funny think happened...
  • Next by Date: RE: multi-dimensional arrays (new to AS)
  • Previous by thread: RE: multi-dimensional arrays (new to AS)
  • Next by thread: Re: global variables
  • Index(es):
    • Date
    • Thread