Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'here is an apple script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
here is an apple script
Authored by: meancode on Mar 03, '02 06:47:33PM
i posted this at the forums site, i might as well post it here.
tell application "Finder"
	activate
	display dialog "Change your startup disk to:" buttons {"Mac OS X", "Mac OS 9.1", "Mac OS 9.2.2"} default button "Mac OS 9.1"
	set the user_choice to the button returned of the result
	if the user_choice is "Mac OS X" then
		do shell script "/usr/sbin/bless -folder '/System/Library/CoreServices' -setOF" password "YourAdminPW" with administrator privileges
	else if the user_choice is "Mac OS 9.1" then
		do shell script "/usr/sbin/bless -folder9 '/Volumes/Mac OS 9/System Folder' -setOF" password "YourAdminPW" with administrator privileges
	else if the user_choice is "Mac OS 9.2.2" then
		do shell script "/usr/sbin/bless -folder9 '/System Folder' -setOF" password "YourAdminPW" with administrator privileges
	end if
end tell


[ Reply to This | # ]
here is an apple script
Authored by: tbasco on Apr 09, '02 08:00:35AM

Here is what I wanna do:

ell application "Finder"

activate

do shell script "/usr/sbin/bless -folder9 '/Volumes/Mac OS 9/System Folder' -setOF" password "xxx" with administrator privileges

restart

end tell

But when I try the script, it won't quit and the logout is timed out because of that.

Can somebody please tell me what's wrong?



[ Reply to This | # ]