global variables
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.