Tell, Double Tell & Run Only
Tell, Double Tell & Run Only
- Subject: Tell, Double Tell & Run Only
- From: Peter Bunn <email@hidden>
- Date: Fri, 24 May 2002 12:33:38 -0500
Hello:
As part of a demo package, I'm hoping to include some run-only scripts
that involve simple "tell application "Foo"" commands. However, even
using a variation of the infamous 'double-tell' (as below), I've found
the technique sometimes works, sometimes doesn't... requiring the user to
'find' "Foo" most times... if not everytime.
Is there a more reliable method to achieve a seamless 'tell' prior to OS
9? Is 'using terms from' the way to go in 9?
Can a run-only, recreatored script 'learn'/retain the app name/location
in the first place?
A definitive answer to the question "Can a run-only script be cracked?"
would also be welcome.
All help is much appreciated.
Thanks.
Peter Bunn
(Note: Double chevrons around 'class psn ' have been replaced by singles
to get past the list server.)
-----
tell application "Finder"
set the_browser to "MOSS"
open application file id the_browser
set _Netscape_ to the first process whose creator type is
(the_browser as type class)
set _Netscape_ to the result as <<class psn >>
tell application "Netscape" to tell _Netscape_
activate
GetURL the_URL_file
end tell
---------------
_______________________________________________
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.