Re: Setting Script Editor Application
Re: Setting Script Editor Application
- Subject: Re: Setting Script Editor Application
- From: Andy Wylie <email@hidden>
- Date: Thu, 21 Feb 2002 07:19:02 +1300
on 20/2/02 8:51 PM, Jon Pugh at email@hidden wrote:
>
At 7:24 PM -0700 2/19/02, Gnarlodious wrote:
>
> I am using Script Debugger. Is there any way to get into Applescript
>
> Guidebook from SD or must I switch to Finder?
>
>
Extension Script!
>
>
tell application "Help Viewer"
>
handle url ":AppleScript GuideBook:bkfr.htm"
>
activate
>
end tell
>
>
I found this by looking at the "current file" property in the Help Viewer
>
dictionary.
>
>
>
> When in the Guidebook clicking on the icon for the Script Editor gets me the
>
> error " Can't find Script Application". How do I tell 9.2 to open SD as
>
> default editor? I tried looking in the File Exchange CP without success, and
>
> Copy&Paste of scripts is impossible in Guidebook
>
>
There is no "Script Editor" setting, so there are a number of holes you have
>
to work with if you want to use a different script editor. The worst is the
>
applet error dialog which offers to let you edit the app. It has the ToyS
>
creator hard coded into it. There have been several hacks to modify this to
>
the editor of your choice, but since it involves modifying the AppleScript
>
extension, it sucks.
>
>
In theory, there are scripts you could modify in the Help folder that do the
>
copy and pasting, but it's just not worth it. The simplest thing is to just
>
keep a copy of Script Editor around for it to launch (if it can't launch it,
>
then you probably need to rebuild your desktop) and after it has copied the
>
script to the clipboard, switch to Script Debugger and paste there.
>
>
Jon
>
>
PS
>
>
I think it would be nice if AppleScript supported a "script editor" setting.
someone kindly pointed out this method of using a redirector applet of
creator "ToyS" on the list awhile back...
property target : ""
property stayOpen : ""
on run
set target to application ((choose file with prompt "Select a new Script
Editor replacement" of type {"APPL"}) as text)
set stayOpen to button returned of (display dialog "Stay open?" buttons
{"Yes", "No"} default button 1) is "Yes"
if not stayOpen then quit me
end run
on open names
tell target
activate
open names
end tell
if not stayOpen then quit me
end open
_____________________________ Andy
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.