Re: Apropos of nothing
Re: Apropos of nothing
- Subject: Re: Apropos of nothing
- From: Romain Brestac <email@hidden>
- Date: Fri, 4 Apr 2003 16:55:03 +0200
I really wish there was some systematic way of capturing all the
applescript code snippets that came through this list.
I made an AS Studio App witch tries to do this.
<
http://www.macupdate.com/download.php/iList.sit?id=10807>
For the moment, it checks the syntax and "colorize" the selected text
of a script. If there is no selection, it detects automagicaly
Applescript Studio Handlers like :
on awake from nib theobject
set iList_is_great to "tout a fait"
end awake from nib
I would like to generalize this feature with AS routines, for example.
Not very easy...
I use the following regex pattern to capture ASStudio handlers:
\n *on (.+) .*(\n.*)+?\n *end \1.*
An other solution could be this :
Encapsulating a script with tags such:
StartOfScript
tell app ""
blah blah
end tell
EndOfScript
And parsing messages to grab contents of these tags...hmm?
I know, it's difficult to get unanimity :-)
Kind regards,
Philippe/SVM Mac
Is there an official doctrine on this list ?
Romain
-------------------------------------------------
Victory attained by violence is tantamount to a defeat, for it is
momentary.
Mahatma Gandhi (1869 - 1948), May 3, 1919
_______________________________________________
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.