Re: UI script fails when run from Mail.app's script menu
Re: UI script fails when run from Mail.app's script menu
- Subject: Re: UI script fails when run from Mail.app's script menu
- From: Rob Jorgensen <email@hidden>
- Date: Sun, 21 Mar 2004 11:23:28 -0500
At 9:34 AM -0600 3/21/04, Joseph Weaks wrote:
On Mar 21, 2004, at 6:18 AM, Bill Cheeseman wrote:
on 2004-03-20 6:14 PM, Rob Jorgensen at email@hidden wrote:
I'd be curious if ANY apps with a script menu allow this line to work:
tell application "System Events" to keystroke "c" using command down
It works from the script menus of Script Debugger and NetNewsWire in
Jaguar (10.2.8).
Well, that pretty much proves that it all depends on how the specific
application implements its Scripts menu.
I'm not certain. As I said, I've discovered that the above line
works in every application's script menu that I've tested. But, once
it is followed by a display dialog or a run script, it fails. I'd
like to know if Rob's test script had any code after the tell app
"System Events"
The first test was the single line of code that you offered above
(with a slight terminology change to accommodate the beta version of
System events used in Jaguar: using > with). I have now tested the
following in both apps and it still works.
tell application "System Events" to keystroke "c" using command down
display dialog (the clipboard)
-- Rob
_______________________________________________
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.