Comments on: An AppleScript Replace Text Method http://foolsworkshop.com/applescript/2008/05/an-applescript-replace-text-method/ 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 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

]]>
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!

]]>
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!

]]>
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!

]]>