• 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: Steven Valenti <email@hidden>
  • Date: Thu, 21 Jul 2005 15:02:38 -0400

Thanks... I'm hoping to work in script debugger though. I don't know
how to use the...

search string   string  -- text string to search for in find and
replace operations
replacement string   string  -- replacement string for replace
operations

Has anyone ever searched an opened script for a string and replaced it
with a string?

Steven



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

> From: Steven Valenti <email@hidden>
> Date: July 20, 2005 4:32:01 PM EDT
> To: email@hidden
> Subject: Scripting Script Debugger
>
> 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.
>
> Steven
>


 _______________________________________________
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

  • Follow-Ups:
    • Re: Scripting Script Debugger
      • From: Shane Stanley <email@hidden>
    • Re: Scripting Script Debugger
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: Finding, deleting hidden files on SMB shares
  • Next by Date: random number
  • Previous by thread: Re: Scripting Script Debugger
  • Next by thread: Re: Scripting Script Debugger
  • Index(es):
    • Date
    • Thread