• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Evaluate text to boolean
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Evaluate text to boolean
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Getting this list item (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: can I do this better?
  • Next by Date: Re: can I do this better?
  • Previous by thread: Re: Getting this list item
  • Next by thread: Re: Evaluate text to boolean
  • Index(es):
    • Date
    • Thread