Comments for The AppleScript Studio Workshop http://foolsworkshop.com/applescript AppleScript Studio blog with tips, scripts, and tutorials Fri, 08 Feb 2013 10:36:25 +0000 hourly 1 https://wordpress.org/?v=4.5.3 Comment on For Loops in AppleScript: Repeat by lindenthal http://foolsworkshop.com/applescript/2008/05/for-loops-in-applescript-repeat/comment-page-1/#comment-72 Fri, 08 Feb 2013 10:36:25 +0000 http://foolsworkshop.com/applescript/2008/05/for-loops-in-applescript-repeat/#comment-72 excellent list

I had a look for something like this:

repeat until exists sheet 1 of window 1 but no more than 20 times

like this:
repeat 20 times
delay 0.1
if exists sheet 1 of window 1 then
exit repeat
end if
end repeat

]]>
Comment on An AppleScript Replace Text Method by Montana http://foolsworkshop.com/applescript/2008/05/an-applescript-replace-text-method/comment-page-1/#comment-71 Wed, 16 Jan 2013 05:14:42 +0000 http://foolsworkshop.com/applescript/2008/05/an-applescript-replace-text-method/#comment-71 Might I suggest a small edit? How about telling the function to throw an error if it did not find any instances of the string to be replaced? I wrote “set originalString to subject” at the top of the function. At the bottom, I wrote:
“if subject is originalString then
error find & ” is not in the subject string.”
end if

]]>
Comment on An AppleScript Replace Text Method by Whizzbizz http://foolsworkshop.com/applescript/2008/05/an-applescript-replace-text-method/comment-page-1/#comment-70 Mon, 20 Feb 2012 11:48:28 +0000 http://foolsworkshop.com/applescript/2008/05/an-applescript-replace-text-method/#comment-70 …and I promise: I will always love the Mac!

]]>
Comment on An AppleScript Replace Text Method by Whizzbizz http://foolsworkshop.com/applescript/2008/05/an-applescript-replace-text-method/comment-page-1/#comment-69 Mon, 20 Feb 2012 11:47:32 +0000 http://foolsworkshop.com/applescript/2008/05/an-applescript-replace-text-method/#comment-69 Finally a simple solution to my text scripting “problem”.

Thank you!

]]>
Comment on For Loops in AppleScript: Repeat by Alex http://foolsworkshop.com/applescript/2008/05/for-loops-in-applescript-repeat/comment-page-1/#comment-66 Wed, 25 May 2011 07:29:16 +0000 http://foolsworkshop.com/applescript/2008/05/for-loops-in-applescript-repeat/#comment-66 There’s also the “repeat with «item» in «list»” form.

]]>
Comment on An AppleScript Replace Text Method by Fabrice http://foolsworkshop.com/applescript/2008/05/an-applescript-replace-text-method/comment-page-1/#comment-48 Thu, 30 Sep 2010 15:36:11 +0000 http://foolsworkshop.com/applescript/2008/05/an-applescript-replace-text-method/#comment-48 Hi,

thank you for this excellent script.
I am actually trying to do the same but base on arrays.
I’d like to do multiple substitution in one go.
I could surely use a loop, but it’s rather slow (we’re talking about several hundreds of items)
Thanks again!

]]>
Comment on Responding to a Clicked Button by HeatherSoft http://foolsworkshop.com/applescript/2008/05/responding-to-a-clicked-button/comment-page-1/#comment-42 Mon, 02 Mar 2009 16:29:16 +0000 http://foolsworkshop.com/applescript/2008/05/responding-to-a-clicked-button/#comment-42 Just double-click on the MainMenu.nib file inside of your xCode project!

]]>
Comment on Adding a Check Updates Feature by laplo http://foolsworkshop.com/applescript/2008/05/adding-a-check-updates-feature/comment-page-1/#comment-29 Wed, 24 Dec 2008 14:00:49 +0000 http://foolsworkshop.com/applescript/?p=43#comment-29 This doesnt work for me…
I dont know what im doing wrong.
my app just keep saying im up to date even when i create new feeds, its so irritating.

i did exactly what the tutorial says tho, and i use Feeder too.

any idea of what could be wrong ?

]]>
Comment on The Development of this Weblog by Max http://foolsworkshop.com/applescript/2008/05/the-development-of-this-weblog/comment-page-1/#comment-26 Sat, 16 Aug 2008 14:47:56 +0000 http://foolsworkshop.com/applescript/?p=28#comment-26 Hey K,

I didn’t know that your welcoming other people to write some tutorials or tips for the blog. I’ve got two ideas for further articles on how to do things with AppleScript. One idea was a simple tutorial explaining how to search and replace any file. That may be a bit AppleScript without Studio oriented – but I think it’s one of those things where I looked ages on Google.
The second idea I had was something very simple and really beginner like creating a textfield with a button and when the button is clicked, the computer speaks the contents of the textfield. It’s simple – but can get people started into AppleScript.

Max (the guy from the Sparkle article)

]]>
Comment on Reacting to Keyboard Input by Gé van Gasteren http://foolsworkshop.com/applescript/2008/05/reacting-to-keyboard-input/comment-page-1/#comment-25 Wed, 06 Aug 2008 19:51:36 +0000 http://foolsworkshop.com/applescript/2008/05/reacting-to-keyboard-input/#comment-25 Thanks for the good description; I’ll try that. Only, your project probably only runs in Leopard? In my XCode 2.5 it doesn’t. Anyway, I have to learn everything still.

]]>
Comment on Adding a Help Book to your AppleScript Studio Application by abi ludwig http://foolsworkshop.com/applescript/2008/05/adding-a-help-book-to-your-applescript-studio-application/comment-page-1/#comment-24 Mon, 14 Jul 2008 18:09:37 +0000 http://foolsworkshop.com/applescript/2008/05/adding-a-help-book-to-your-applescript-studio-application/#comment-24 hi – thanks for the article, in number 1 above you say “since my application will be called “Help Folder Example”” but i think you really meant ‘Help Book Example’ … that got me for a bit so just wanted to let you know of the typo. thanks again.

]]>
Comment on For Loops in AppleScript: Repeat by PeterVk http://foolsworkshop.com/applescript/2008/05/for-loops-in-applescript-repeat/comment-page-1/#comment-22 Sun, 22 Jun 2008 02:03:46 +0000 http://foolsworkshop.com/applescript/2008/05/for-loops-in-applescript-repeat/#comment-22 Simple, clean advice. Thanks.

Really nice site, mate!

]]>
Comment on Adding a Check Updates Feature by RJay Hansen http://foolsworkshop.com/applescript/2008/05/adding-a-check-updates-feature/comment-page-1/#comment-11 Tue, 10 Jun 2008 17:05:02 +0000 http://foolsworkshop.com/applescript/?p=43#comment-11 This is for Jordan T: I used this tutorial and the old documentation on the Sparkle website at to get this running in my Studio app using Tiger and Xcode 2.5.

http://sparkle.andymatuschak.org/oldsite/wiki/Documentation/Basics

]]>
Comment on Adding a Check Updates Feature by Jordan T http://foolsworkshop.com/applescript/2008/05/adding-a-check-updates-feature/comment-page-1/#comment-10 Tue, 03 Jun 2008 18:03:31 +0000 http://foolsworkshop.com/applescript/?p=43#comment-10 Hi. Good tutorial. Do you have one for Tiger? If not, please write one!

Thx.

]]>
Comment on Search a String: Offset by has http://foolsworkshop.com/applescript/2008/05/search-a-string-offset/comment-page-1/#comment-5 Sat, 24 May 2008 09:03:00 +0000 http://foolsworkshop.com/applescript/2008/05/search-a-string-offset/#comment-5 “I can’t seem to get that call method command to compile in a test application.”

If cutting and pasting, beware WordPress’s curly quotes. AppleScript requires straight double quotes for string literals.

]]>
Comment on Search a String: Offset by K. M. Lawson http://foolsworkshop.com/applescript/2008/05/search-a-string-offset/comment-page-1/#comment-4 Wed, 21 May 2008 01:17:21 +0000 http://foolsworkshop.com/applescript/2008/05/search-a-string-offset/#comment-4 Intersting, I can’t seem to get that call method command to compile in a test application.

]]>
Comment on Search a String: Offset by K. M. Lawson http://foolsworkshop.com/applescript/2008/05/search-a-string-offset/comment-page-1/#comment-3 Tue, 20 May 2008 14:26:08 +0000 http://foolsworkshop.com/applescript/2008/05/search-a-string-offset/#comment-3 I will have to look into some more of thos NSString methods within Cocoa! Thanks for passing that info along!

]]>
Comment on Search a String: Offset by has http://foolsworkshop.com/applescript/2008/05/search-a-string-offset/comment-page-1/#comment-2 Tue, 20 May 2008 10:47:35 +0000 http://foolsworkshop.com/applescript/2008/05/search-a-string-offset/#comment-2 Text manipulation is definitely not one of AppleScript’s strong points, and its out-of-the-box support for it really sucks. However, if you’re working in Studio you can easily take advantage of Cocoa’s own NSString methods and third-party text processing frameworks such as RegexKit. For example, to uppercase an AppleScript string:

set myText to call method “uppercaseString” of myText

For non-Studio-based projects, your best bet would be to use a Unicode-aware scriptable text editor, e.g. TextWrangler, or scripting addition/scriptable faceless background application, e.g. TextCommands.

HTH

]]>