Re: How to open a folder after installation?
Re: How to open a folder after installation?
- Subject: Re: How to open a folder after installation?
- From: Peter Bierman <email@hidden>
- Date: Wed, 1 Jun 2005 12:53:34 -0700
If your package requires authorization, then the script is running as root.
It might be possible to use 'open' to launch an app as root into a
regular user session, but not to use 'open' as root to get the finder
to open a window.
You can probably use 'osascript' to send an AppleEvent to the finder
asking it to open the window you want.
You could also look for the real (vs effective) uid that your script
is running as, and use 'su' to switch to that user to run the 'open'
command.
-pmb
At 1:28 PM -0500 6/1/05, Derrick Griffel wrote:
Thanks for the info.
I just tried that but unfortunately with the same results. The
folder does not open. I know it is changing to the correct
directory though, because if I substitute "open MyApp.app" for "open
.", the application gets launched from the installer. But for
whatever strange reason, I cannot just get the folder to open. It
also seems add that it will open the application fine, but not open
the folder.
Thanks,
On Jun 1, 2005, at 1:12 PM, Pavol Markovic wrote:
Try
cd $2/foldername
open .
I haven't tried it in Installer, but I was able to do this in
situations where open folder didn't work.
PM
On Jun 1, 2005, at 6:56 PM, Derrick Griffel wrote:
I am trying to open a specific folder after installation. I have
a postflight script that contains the following line: open
$2/foldername. I would expect this to open the directory named
foldername located at the install location returned by the $2
variable. Unfortunately, the directory does not open. However,
if I change this to: open -a $2/foldername/application.app, The
postflight script WILL launch my application located inside the
folder. Does anyone have any ideas on why I can get the script to
launch an application after install, but not open a folder?
Thanks,
Derrick
_______________________________________________
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
Derrick Griffel
Intriguing Development Inc.
816-229-6768 ext. 12
www.idevelop.net
_______________________________________________
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
_______________________________________________
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