Re: Novice Question - User Interface Assistance...
Re: Novice Question - User Interface Assistance...
- Subject: Re: Novice Question - User Interface Assistance...
- From: Graff <email@hidden>
- Date: Sun, 21 Mar 2004 14:42:51 -0500
You can find more information about User Interface Scripting here:
<
http://www.apple.com/applescript/uiscripting/>
Follow the instructions for activating UI Scripting and then you can do
something like this snippet:
----------
set appName to my name
tell application "System Events"
tell process appName
keystroke "c" using command down
delay 1
end tell
end tell
display dialog (the clipboard as text)
----------
I put the delay in there because nothing was getting to the clipboard
if I returned immediately. It seems that if you don't give it time to
complete the copy operation then it won't complete on its own and it
fails.
-Ken
On Mar 21, 2004, at 12:35 PM, Domains4Days wrote:
Sometime recently, I heard that AppleScript implemented some new user
interface commands. I have a few questions ...
1 - is there now a way to implement a copy command - like the user
typing
command-C? Currently, I have several quickeys whose first command is:
type command-C (copy current selection - whatever it may be) - then
performs the attached AppleScript. It would be great if I could avoid
using
Quick keys this and simply make the first command inside of an
AppleScript
be the equivalent of typing command-C
If someone to be so kind - could you show me the AppleScript command
for
this purpose?
2 - where is the best place to read information on the new user
interface
commands? A URL would be great ...
_______________________________________________
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.