OK, to have state in a script you need to define a "property" So the first line would look like: property myRunning : false Then you could have the script text itself say
if myRunning then - Things are running set myRunning to false tell application "bang" to quit else set myRunning to true tell application "Bar" to activate end if I once started investigating using this logic to capture two VoiceOver cursor positions and select the text between them, but I could not figure out the voiceover cursor object enough. Best regards, Jonathan -- You received this message because you are subscribed to the Google Groups "MacVisionaries" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/macvisionaries?hl=en.
