UPDATE: Script Debugger 6 addresses this problem.
Customers often write in asking why Script Debugger will not allow them to change the case of identifiers in their scripts (e.g. change ‘myname’ to ‘myName’).
This is actually a feature of AppleScript. AppleScript remembers the case of each identifier it encounters in your script (from the first time you compiled the script). From that point onward, AppleScript converts the case of subsequent instances of identifiers to match the first instance.
This is helpful in some instances, but if you want to alter the case of your identifiers it can be very frustrating.
The workaround is this:
- Save your script as a text document (.applescript extension)
- Quit Script Debugger to ensure that AppleScript’s caches are flushed
- Launch Script Debugger
- Open the text (.applescript) version of your script
- Make your identifier case changes
- Compile your script
- Save your script as a compiled script or application