• 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
Re: Apropos of nothing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Prev by Date: Re: Scripting Terminal for simple FTP
  • Next by Date: mapping network drive with SAMBA
  • Previous by thread: Re: Apropos of nothing
  • Next by thread: RE: Apropos of nothing
  • Index(es):
    • Date
    • Thread