• 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
"\r" & tab bugs in Script Editor 2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"\r" & tab bugs in Script Editor 2


  • Subject: "\r" & tab bugs in Script Editor 2
  • From: Bill Cheeseman <email@hidden>
  • Date: Tue, 25 Feb 2003 12:27:54 -0500

I just discovered that Script Editor 2 compiles the \r in the 'keystroke
"\r"' line in the following script to a real carriage return. It shouldn't
do this, since "\r" is a valid AppleScript escape sequence for carriage
return. But the carriage return is still sent and works as expected.

tell application "System Events"
tell application process "TextEdit"
keystroke "\r"
end tell
end tell

But if you switch to using the 'tab' and 'return' keywords as your personal
scripting style to avoid this cosmetic issue, 'tab' is compiled to 'tab
group'. But it still sends a tab character when you run the script.

Apologies if these have already been reported.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com

The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont - http://members.valley.net/croquetvermont
_______________________________________________
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.

  • Prev by Date: Re: Scripting iPhoto
  • Next by Date: iList
  • Previous by thread: click "OK" button
  • Next by thread: Script speed [Was list number]
  • Index(es):
    • Date
    • Thread