Here’s a crucial Keychain Scripting script that compiles and runs fine on Leopard but generates an error when moved to Tiger without recompiling. If you recompile it on Tiger then it works again!
set thekey to "some_existing_generic_key_name" -- obviously you have to change thekey variable to an existing generic key on login.keychain tell application "Keychain Scripting" tell keychain "login.keychain" set thekey to some generic key whose name = thekey end tell end tell
At first I thought it was an XCode (2.5) problem, but the same thing happens with script editor. I did find that compiling the AS Studio project in XCode 2.5 on Tiger and then running it on Leopard worked as expected. But I’m trying to stay in a Leopard development environment and this is not fun.
Is there any conceivable work-around to this problem?
Model: G5 Dual
Browser: Safari 523.10
Operating System: Mac OS X (10.5)