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 16:32:16 -0800
On 1/17/03 3:51 PM, "Dave Stewart" <email@hidden> wrote:
>
On Friday, January 17, 2003, at 02:16 PM, it was written (by Michael
>
Cytrynowicz, Paul Berkowitz and Emmanuel):
>
>
>
>
>>> tell application ("Help Viewer.app" & "")
>
>>
>
>> Clever.
>
>
>
> <homer> Mmmm ... Cle-vver ... </homer>
>
>
>
> At 4:00 PM -0800 17/01/03, Michael Cytrynowicz wrote:
>
>> Emmanuel, I tried:
>
>>
>
>> tell application ("Help Viewer.app" & "")
>
>> launch
>
>> display dialog "Hello!"
>
>> end tell
>
>>
>
>> ?!?? It still causes System 9 to lauch!!!!!
>
>
>
> <homer> Doh!!! </homer>
>
>
>
> That's certainly of little help, but OMM (10.2.1) Michael's script
>
> above launches OSX' Help Viewer.
>
>
Hold on a second ...
>
>
Am I missing something important here? Michael's original script worked
>
perfectly for me on OSX.2.3, SE1.9:
The fact that it worked for you doesn't mean that it works for everyone (it
quite evidently doesn't work for Michael), nor does it mean that Michael has
some sort of OS corruption. The OS X file system is very peculiar about
which copy/version of an app it considers to be the default version to open.
As Michael demonstrated, even stuffing the OS 9 version to force the OS X
one to open, then unstuffing the 9 version again, did not persuade the file
system that the X version was the right one. It still preferred the 9
version even though it was not the last one opened. (I would guess that if
Michael had rebooted with only the X version present, called it a few times,
then opened the 9 version, he might have had better luck. But maybe not.)
The usual absolute fail safe thing is to give the full filepath to the
version you want to open. I think someone mentioned that already, but I
don't recall Michael saying he'd tried that.
set XHelpAppPath to (path to "csrv" as Unicode text) & "Help Viewer"
-- or (path to system folder as Unicode text) & "Library:CoreServices:Help
Viewer"
tell application XHelpAppPath
launch
display dialog "Hello"
end tell
BTW, you may not see that dialog if this does what it should since 'launch'
should open it in the background. You'd need 'open' , not 'launch'.
--
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.