• 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: Scripting Startup Disk control panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Scripting Startup Disk control panel (From: Jan Pieter Kunst <email@hidden>)

  • Prev by Date: Application Script
  • Next by Date: Re: Converting "scpt" resource to text
  • Previous by thread: Re: Scripting Startup Disk control panel
  • Next by thread: How Unique is AppleScript?
  • Index(es):
    • Date
    • Thread