Re: startup disk question
Re: startup disk question
- Subject: Re: startup disk question
- From: Andrew Oliver <email@hidden>
- Date: Fri, 20 Feb 2004 11:43:47 -0800
Is your disk called 'startup disk'? If not, you can't reference files on a
disk that doesn't exist.
Instead what I think you want is to dynamically reference the startup disk,
like:
set disk_name to (path to startup disk as string)
run script disk_name &"Library:Scripts:Universal Scripts:SetSoundVolume"
However, to be truly smart you should use the path to the Scripts folder
since this will work no matter what the user's disk is called, or what the
Library an Script folders are called in the user's local language:
set scripts_folder to (path to scripts folder from local domain) as string
run script scripts_folder & "Universal Scripts:SetSoundVolume"
Andrew
:)
On 2/20/04 10:56 AM, "Robert Poland" <email@hidden> wrote:
>
hi,
>
>
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.
>
>
Tis,
_______________________________________________
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.