Re: Application-specific code in handler won't execute
Re: Application-specific code in handler won't execute
- Subject: Re: Application-specific code in handler won't execute
- From: Yvan KOENIG <email@hidden>
- Date: Sat, 16 Jul 2005 08:06:32 +0200
Hello
I don't own BBEdit but this changed handler may help:
version 1
on LiteralFix(FindText, ReplaceText)
set quote to "\""
set TheCommand to "replace " & quote & FindText & quote & " using " &
quote & ReplaceText & quote & " searching in text 1 of text document 1
options {search mode:literal, starting at top:false, wrap around:true,
backwards:false, case sensitive:true, match words:false, extend
selection:false}"
tell application "BBEdit"
activate -- ADDED
TheCommand
end tell
end LiteralFix
version 2
on LiteralFix(FindText, ReplaceText)
tell application "BBEdit"
activate -- ADDED
replace FindText using ReplaceText searching in text 1 of text
document 1 options {search mode:literal, starting at top:false, wrap
around:true, backwards:false, case sensitive:true, match words:false,
extend selection:false}
end tell
end LiteralFix
Yvan KOENIG
_______________________________________________
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