• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: osascript shell commands using AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: osascript shell commands using AppleScript (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: can applescript monitor keyboard input
  • Next by Date: Meta data help
  • Previous by thread: Re: osascript shell commands using AppleScript
  • Next by thread: Airport Utility scripting
  • Index(es):
    • Date
    • Thread