• 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: Preferred AS editing tools
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Preferred AS editing tools


  • Subject: Re: Preferred AS editing tools
  • From: Christopher Stone <email@hidden>
  • Date: Thu, 28 Jul 2011 11:02:24 -0500

On Jul 28, 2011, at 10:21, Zavatone, Alex wrote:
I've been using the Script Debugger for quite some time now and am pretty impressed with the actual debugger (though it can get slow at times).

What do you all prefer?  Are there other little OSAXes or other tools to make our lives easier?
______________________________________________________________________

Hey Alex,

I've been using Script Debugger since version 1.0, and I'd hate to have to fool with Applescript without it.

I think its very useful to have Smile on the machine.  It has valuable tools and makes a great script-server.

Must have osaxen:

LapTime.osax
List & Record Tools.osax
Satimage.osax (installed by Smile but available as separate install)

I use the Satimage.osax's regex to do key-value lookups.  It's very fast and flexible:

------------------------------------------------------------------------------------------------
# Find Handler - Returns Specified String - Satimage.osax            MODIFIED 2011-04-17 : 16:33
------------------------------------------------------------------------------------------------
on fndUsing(fndStr, returnStr, dataSource, caseSensitive, regExFlag, wholeWord, allOccurrences, stringResult)
try
set findResult to find text fndStr ¬
in dataSource ¬
case sensitive caseSensitive ¬
regexp regExFlag ¬
whole word wholeWord ¬
using returnStr ¬
all occurrences allOccurrences ¬
string result stringResult
return findResult
on error # errMsg number errNum
return false
end try
end fndUsing
------------------------------------------------------------------------------------------------


set lookupTableData to "
------------------------------
key1 value1
key2 value1
key3 value3
------------------------------
"

fndUsing("^key2\\t+(.+)", "\\1", lookupTableData, false, true, false, false, true)

--
Best Regards,
Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Preferred AS editing tools
      • From: Emmanuel LEVY <email@hidden>
References: 
 >Preferred AS editing tools (From: "Zavatone, Alex" <email@hidden>)

  • Prev by Date: Preferred AS editing tools
  • Next by Date: Re: Trim space chars from start of line
  • Previous by thread: Preferred AS editing tools
  • Next by thread: Re: Preferred AS editing tools
  • Index(es):
    • Date
    • Thread