How to "Tell" a varible name
How to "Tell" a varible name
- Subject: How to "Tell" a varible name
- From: SeaSoft Systems <email@hidden>
- Date: Wed, 7 Feb 2001 08:33:12 -0800
I am having problems getting a simple "Tell application" task to work
using a variable Tell target. Sorry if this has come up before...
For example, this issues no error but fails to work properly
tell application "Finder"
get name of (the first process whose creator type is "WWW")
end tell
set WebStar to result as text
Display dialog Webstar
--> Webstar 4.4b2
tell application WebStar
Display dialog "Inside Tell" -- To see if we actually get into the Tell
--> Inside Tell
Do stuff
-- Fails to do stuff, no error messages
on error errMsg number errNum
error number errNum
end tell
While this works as expected, again without errors
tell application "Webstar 4.4b2"
Display dialog "Inside Tell"
--> Inside Tell
Do stuff
-- Does stuff just fine
on error errMsg number errNum
error number errNum
end tell
Could this be a Webstar problem, or am I making an applescripting error?
Thank you for any guidance,
Richard