Re: Scripting Script Debugger
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