Re: How can I Lauch Finder in postinstall or postupgrade?
Re: How can I Lauch Finder in postinstall or postupgrade?
- Subject: Re: How can I Lauch Finder in postinstall or postupgrade?
- From: Kazuyoshi Matsumoto <email@hidden>
- Date: Tue, 07 Oct 2008 21:00:15 +0900
Dear Mr.Philip
Thanks alot!
> This error is from LaunchServices (LSInfo.h):
>
> kLSUnknownErr = -10810, /* Unexpected internal error*/
>
>
hmmm......Unknown.....
> The problem is most likely that you are launching the Finder
> immediately after quitting it (takes a while for the Finder to quit
> depending on many factors).
So.
I should insert 'delay'....I see...
> You really don't need AppleScript to show a folder unless it has been
> opened previously and it needs updating.
> So in most circumstances you can probably use:
Really?
I'll try what you say.
> > [environment infomation when problem occured]
> > * OS: MacOS X 10.5 (no revision)
>
> I think you should upgrade to at least 10.5.2
I think so....But my client said...."I can't version up."
I can't believe it.....
Thank you so much.
Kazuyoshi
On Tue, 7 Oct 2008 04:43:34 -0700
Philip Aker <email@hidden> wrote:
> On Oct 7, 2008, at 4:18 AM, Kazuyoshi Matsumoto wrote:
>
> > I'm looking for the method How the installer lauch Finder
> > at the end of Installation of an Application.
> > In other words...
> > I wanna show some folder after install my application.
> >
> > I'm trying to write in 'postinstall' script (in AppleScript) like
> > bellow.....
> >
> > --[postinstall]---------
> > osascript -e 'tell app "Finder" to quit'
> > osascript -e 'tell app "Finder" to activate'
> > osascript -e 'tell app "Finder" to open folder "MyFolder" of folder
> > "Applications:Utilities" of startup disk'
> > .......
> > ------------------------
> >
> > But sometime fail launch "Finder".(some environment SUCCESS!!)
> > In error log.....
> > execution error: An error of type -10810 has occurred. (-10810)
> >
> >
> > [question]
> > * What is error code mean? What's Happen?
> > ---> I can't find any answer in apple web site.....
>
> Hi Kazuyoshi,
>
> This error is from LaunchServices (LSInfo.h):
>
> kLSUnknownErr = -10810, /* Unexpected internal error*/
>
>
> > * Please tell me what is wrong.
> > * Is there any idea to this problem?
>
> The problem is most likely that you are launching the Finder
> immediately after quitting it (takes a while for the Finder to quit
> depending on many factors).
>
> You really don't need AppleScript to show a folder unless it has been
> opened previously and it needs updating.
> So in most circumstances you can probably use:
>
> /usr/bin/open "/path/to/MyFolder"
>
> Maybe something like:
>
> /usr/bin/open "/Applications/Utilities/MyFolder"
>
>
> > [environment infomation when problem occured]
> > * OS: MacOS X 10.5 (no revision)
>
> I think you should upgrade to at least 10.5.2
>
>
>
> Philip Aker
> echo email@hidden@nl | tr a-z@. p-za-o.@
>
> Democracy: Two wolves and a sheep voting on lunch.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden