Re: Panther/Terminal/System events
Re: Panther/Terminal/System events
- Subject: Re: Panther/Terminal/System events
- From: Christopher Nebel <email@hidden>
- Date: Thu, 30 Oct 2003 09:45:04 -0800
On Oct 29, 2003, at 4:24 PM, David A. Cox wrote:
I think this may work a little better:
tell application "Terminal"
activate
end tell
tell application "System Events"
tell process "Terminal"
keystroke "n" using command down
delay 5
set the clipboard to "ncftp zn put
/Volumes/1-Peerless20gb/scrapper.sit AS_Terminal"
keystroke "v" using command down
end tell
end tell
Of course, if you're trying to execute the ncftp command (which the
above won't, because there's no return at the end of the string), you
could just say:
tell application "Terminal"
activate
do script "ncftp zn put /Volumes/1-Peerless20gb/scrapper.sit
AS_Terminal"
end
Don't futz around with GUI scripting if you don't have to.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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.