Re: Scripting Startup Disk control panel
Re: Scripting Startup Disk control panel
- Subject: Re: Scripting Startup Disk control panel
- From: Jan Pieter Kunst <email@hidden>
- Date: Mon, 30 Jul 2001 19:29:59 +0200
Jan Pieter Kunst (email@hidden) schreef op 30-07-2001 06:16 :
>
Thanks, all I have to do is remember to change it back to <<property sysf>>
>
before a recompile. It is awkward, but I should be able to write my script
>
now.
Or so I hoped.
It seems that the <<property sysf>> is one of those things that is
"gettable", but not "settable".
This is my script (after compiling, I actually typed <<property sysf>>
instead of "startup system folder alias":
tell application "Opstartschijf" -- Dutch for Startup Disk
activate
set x to get startup system folder alias
if x is alias "Disk:System Folder2:" then
set startup system folder alias to alias "Disk:System Folder1:"
else
set startup system folder alias to alias "Disk:System Folder2:"
end if
quit
end tell
But this gives me (after Startup Disk opens and display the watch cursor for
about 10 seconds) the following error message (in the strange English/Dutch
mixture that seems typical of AS error messages):
alias "Disk:System Folder1:" kan niet worden toegekend aan <<class sysf>> of
application "Opstartschijf"
meaning:
alias "Disk:System Folder1:" can not be assigned to <<class sysf>> of
application "Startup Disk"
Is there something obviously wrong with my script?
Thanks,
Jan Pieter.-