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: Joseph Weaks <email@hidden>
- Date: Sat, 20 Mar 2004 16:43:00 -0600
On Mar 20, 2004, at 3:53 PM, Bill Cheeseman wrote:
on 2004-03-20 3:50 PM, Joseph Weaks at email@hidden wrote:
The goal is to have a generic applescript to
be used in any application with a script menu, that will copy the
selected text using UI scripting (and later paste)
Applications that implement Scripts menus are responsible for
setting up the context in which the script executes. There have been
some
posts to this list, recently I think, discussing how it should be
done. Not
all apps do it right.
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
I tried a variant of your script in Mail and in OmniOutliner, with the
same
results you obtained.
Ditto for BBEdit
This is not a matter of needing to bring another app to the front to
"set"
the new clipboard value. I tried that and it doesn't help.
That's one of the first things I thought of, too. No change.
So, is my original goal inept? Having a generic script that can be
dropped into any app with a script menu that can copy the selected
text, and also paste the clipboard?
Still puzzled,
Joe Weaks
_______________________________________________
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.