Re: Why does the Script Editor Service do this?
Re: Why does the Script Editor Service do this?
- Subject: Re: Why does the Script Editor Service do this?
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 17 Jan 2003 21:34:45 -0800
On 1/18/03 3:55 AM, "Michael Cytrynowicz" <email@hidden> wrote:
>
11. Read your email and tried the scripts. Every one of the variations you
>
suggested.
>
>
12. No deal. But this time, something different - on script run, I get an
>
AppleScript error: File application disk:System:Library:CoreServices:Help
>
Viewer wasn't found. Exactly like this.
>
>
13. yet there is a Help Viewer package, with type appl and creator hbwr,
>
exactly at that location. It opens when solicited (clicking an application's
>
HELP), and it does its thing when already launched.
My fault. I didn't test first. Since it's a package, it really does need
".app" added to the end. Then it works. A package, which is really a folder,
needs '.app' to behave like a file. (Or to have to dig deep into the package
contents to fins the real application file - don't.) Your URL coercion from
your next post must do something similar under the surface.
set XHelpViewerPath to ((path to "csrv" as Unicode text) & "Help
Viewer.app")
tell application XHelpViewerPath
launch
display dialog "Hello"
end tell
And I was wrong about 'open': "Can't continue open". But 'launch' works just
fine, eve without an 'activate' to follow.
--
Paul Berkowitz
_______________________________________________
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.