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

Re: AppleScript and the Startup Disk control panel...


  • Subject: Re: AppleScript and the Startup Disk control panel...
  • From: Andy Wylie <email@hidden>
  • Date: Mon, 06 Aug 2001 23:34:42 +1200

on 6/8/01 9:30 PM, Helmut Fuchs at email@hidden wrote:

> For me _Standard_Additions_ is the culprit. When I moved it from my
> Scripting Additions Folder to the Desktop and rebooted, I was able to
> compile this line:
>> set startup system folder alias to alias ...
>
I've not seen this problem under AS 1.3.7 OS 8.6, someone found removing
Jon's Commands to be a solution and Jon responded saying it may be a
combination of it's 'alias information' and Standard Addditions 'disk' if I
remember correctly. This seems very plausible in light of my experience of
<<property sysf>> returning "can't get system font", it seems to grab
something close if it can't find the correct id.
>
> Now fasten your seatbelts. What works for me is annoyingly unexpectable:
>> set <<property sysf>> to alias "Mac OS 9:Systemordner:Scripting Additions:"
>
> So if I provide Startup Disk with an alias to any file or folder
> WITHIN the system folder it does what it's supposed to do.
>
> So here's what I succesfully use to achieve the goal of setting the
> startup system folder:
>> tell application "Startvolume" -- german name for startup disk
>> activate
>> set localboot to true -- can this be omitted?
>> set <<property sysf>> to alias "Mac OS 9:Systemordner:System"
>> quit
>> end tell
>
> But there's still a few questions left unanswered: does picking a
> file or folder within the system folder work for the ones who are NOT
> having to work around like this?
>
Everything compiles ok here with Startup Disk activated (run returns some
parameter missing? while launch works...slowly}
---------
tell application "Startup Disk" to launch
delay 3 --2 errors with folder can't be found
tell application "Startup Disk"
get startup system folder alias
end tell
--------
set 'startup system folder alias' never worked until I just tried your
solution of calling it's path anywhere within the system folder, thanks!
Probably worth repeating is changes aren't reflected in the window until
it's quit and relaunched.
_____________________________ Andy


References: 
 >Re: AppleScript and the Startup Disk control panel... (From: Helmut Fuchs <email@hidden>)

  • Prev by Date: XML parsing using apple script
  • Next by Date: parsing XML with apple script
  • Previous by thread: Re: AppleScript and the Startup Disk control panel...
  • Next by thread: Re: AppleScript and the Startup Disk control panel...
  • Index(es):
    • Date
    • Thread