• 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: Scripting Script Debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Script Debugger


  • Subject: Re: Scripting Script Debugger
  • From: Emmanuel <email@hidden>
  • Date: Thu, 21 Jul 2005 10:53:50 +0200

At 4:32 PM -0400 7/20/05, Steven Valenti wrote:

I have a whole collection of scripts that have two property variables inside that I need to change for a list of individual computers. After opening scripts contained in a list in Script Debugger, I want to use the search string & replacement string but not sure how to write it. Then save the file to a new folder on desktop. Can anyone help please.

If you don't have a better solution, that would be fairly easy in Smile. You would just write:


-- not tested
 -- set theList to {alias "path:to:script:1", alias "path:to:script:2", etc.}

repeat with theFile in theList
set theFile to contents of theFile
set theWindow to (open theFile)
change "Macintosh HD:" into "steven's HD:" in theWindow -- you can use regular expressions here
close theWindow saving yes
end repeat


Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Scripting Script Debugger (From: Steven Valenti <email@hidden>)

  • Prev by Date: Re: (no subject)
  • Next by Date: Re: empty trash on certain disk
  • Previous by thread: Scripting Script Debugger
  • Next by thread: Re: Scripting Script Debugger
  • Index(es):
    • Date
    • Thread