• 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: Fri, 22 Jul 2005 09:08:53 -0400

Running this script will fill the find box with the strings,
one would think adding a command for search and replace all would have
been an ideal next step?

tell application "Script Debugger"
set search string to "Red"
set replacement string to "Blue"
end tell

Perhaps since I know which line and word I need to change I can use
some like this...
-- Line 1 of document 2   =   property WIPname : "Red"


tell application "Script Debugger"
	set x to words of line 1 of document 2
	set item 3 of x to "\"Blue\""
	set y to item 1 of x & " " & item 2 of x & ":" & item 3 of x &
return
as string
	set line 1 of document 2 to y
	set MyFile to (((path to desktop) as string) & "NewScript") as file
specification
	save document 2 in MyFile as compiled script
end tell


Steven



On Jul 21, 2005, at 5:02 PM, Andrew Oliver wrote:

> On 7/21/05 12:02 PM, "Steven Valenti" <email@hidden> wrote:
>
> > 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?
>
> Which Script Debugger are you using?
>
> My Script Debugger doesn't appear to have any kind of search command
> in its
>  dictionary.
>
> Andrew
>  :)


 _______________________________________________
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

  • Prev by Date: Re: empty trash on certain disk
  • Next by Date: Re: empty trash on certain disk
  • Previous by thread: Re: Scripting Script Debugger
  • Next by thread: Scripting Acrobat; where to find help
  • Index(es):
    • Date
    • Thread