Jump to content

Bizarre AppleScript Problem, Please Help!


foodfightr
 Share

2 posts in this topic

Recommended Posts

Ok, so all of a sudden the scripts I use on a day-to-day basis look like they've been changed.

 

Where it used to say: key code 49

It now says: «event prcskcod» 49

 

I'm seeing other commands being replaced by weird events like...

 

key down to «event prcskeyF»

key up to «event prcskeyU»

 

 

Now when I run the scripts they don't work.

 

Please help!

Link to comment
Share on other sites

I wrote a simple test script on my MacBook, all it does is write the letter "j" in Terminal:

 

tell application "System Events"

tell application "Terminal" to activate

key code 38

end tell

 

It worked fine when I ran it on the MacBook. I saved it and sent it to the Mac with the problem. When I opened the same script the code now looks like:

 

tell application "System Events"

tell application "Terminal" to activate

«event prcskcod» 38

end tell

 

It doesn't work if I run it and it doesn't work if I change "«event prcskcod»" back to "key code"

Link to comment
Share on other sites

 Share

×
×
  • Create New...