Re: osascript shell commands using AppleScript
Re: osascript shell commands using AppleScript
- Subject: Re: osascript shell commands using AppleScript
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 27 Jun 2008 05:43:24 -0400
- Thread-topic: osascript shell commands using AppleScript
on 2008-06-26 10:31 PM, Christopher Nebel at email@hidden wrote:
>> But then how do I get the environment variables that PackageMaker/
>> Installer
>> provide?
>
> "system attribute" was extended some time ago to support this.
> (Though the sub-shell trick would also work.)
>
> system attribute "HOME"
> --> "/Users/nebel"
>
> Or, in your case, 'system attribute "installedPath"'.
Thanks, Chris, I didn't realize that, or had forgotten. As it turns out,
however, I can't make the Finder's 'update' command work. I'm not sure yet
whether it's because of something wrong with my machine. I'm now using
'touch -ac' in my installer script instead of osascript, and it works the
first time but fails if I reconfigure my test and fun the installer again a
second time without rebooting in between.
Any word on whether 'update' is in fact broken?
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com
PreFab Software - www.prefabsoftware.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden