Evaluate text to boolean
Evaluate text to boolean
- Subject: Evaluate text to boolean
- From: Gnarlodious <email@hidden>
- Date: Sat, 15 Jun 2002 11:35:43 -0600
What I tried was to set x to a boolean like:
set x to ((activity of theRAStatus) = "connected")
so later I could say:
if x then
uploadStuff(theseItems)
So how do I make x a boolean?
I got around the previous problem by saying:
tell application "Network Setup Scripting"
open database
set theRAStatus to (status of Remote Access configuration 1)
set x to (activity of theRAStatus)
close database
end tell
if x = "connected" then
uploadStuff(theseItems)
else
etc.
But now, x will = "connected" but it will still think it is not, so what am
I doing wrong?
Hope that makes sense...
Rachel
http://www.gnarlodious.com
_______________________________________________
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.