Re: Scripting Startup Disk control panel
Re: Scripting Startup Disk control panel
- Subject: Re: Scripting Startup Disk control panel
- From: Helmut Fuchs <email@hidden>
- Date: Sun, 29 Jul 2001 23:16:00 +0200
At 13:01 Uhr +0200 29.07.2001, Jan Pieter Kunst wrote:
Andy Wylie (email@hidden) schreef op 29-07-2001 12:28 :
on 29/7/01 9:57 pm, Jan Pieter Kunst at email@hidden wrote:
<snip<
>> tell application "Opstartschijf"
get startup system folder alias
end tell
--> Expected end of line but found application constant or consideration
What am I doing wrong? Mac OS 9.1, AS 1.5.5 (sorry, no Dutch AS 1.6 is yet
in existence).
It doesn't work in the background, tell it to activate.
If I put an "activate" immediately after the "tell application", I get the
exact same error messages ...
The Problem is that "system folder" is also defined in the Standard
Additions, seemingly leading to a naming conflict. So you can't
compile it in the first place.
The following works for me (and be assured, it IS incredibly awkward):
tell application "Opstartschijf"
activate
set theAlias to +property sysf;
quit
end tell
If all goes well the Variable theAlias should contain what you want.
Note two things:
1. the activate is REALLY necessary
2. when you compile this, the term "property" will magically change
to "class" - this will
eventually cause big headaches, because when you recompile, it
won't work anymore...
Hope I could help a bit...
--
Helmut