• 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: startup disk question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: startup disk question


  • Subject: Re: startup disk question
  • From: Chris Espinosa <email@hidden>
  • Date: Fri, 20 Feb 2004 11:33:34 -0800

On Feb 20, 2004, at 10:56 AM, Robert Poland wrote:

Why does this work?
run script alias "iMac HD:Library:Scripts:Universal Scripts:SetSoundVolume"

and this doesn't?
run script alias "startup disk:Library:Scripts:Universal Scripts:SetSoundVolume" -- File not found

My goal is to make a script that will work on two machines.

Because different machines may have different names for the startup disk, you probably want to use the 'path to' scripting addition to give you the path to the Scripts folder on the machine on which the script is running:

set thePath to ((path to scripts folder as string) & "Universal Scripts:SetSoundVolume"
run script alias thePath

Chris
_______________________________________________
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.

References: 
 >startup disk question (From: Robert Poland <email@hidden>)

  • Prev by Date: Quicktime Player Movie Script
  • Next by Date: Setting Finder window background picture
  • Previous by thread: startup disk question
  • Next by thread: Re: startup disk question
  • Index(es):
    • Date
    • Thread