Im trying to make a script for guests on Leopard that will tell them the Terms of Use on the Mac, this is what I have so far,
display dialog "Welcome to Mac OS X! Please remember that this computer is property of Andres Pena and IS NOT warantied. Any physical or software damage done to the computer will be charged to the person (s) will be charged for damage. So save your self the hassle, and don't ruin my Mac. Any and all applications that you wish to install must be approved by Andres Pena first. Any software updates are by me, so please don't do software update, I manage the updates. Plugins such as Flip4Mac are there for you to be able to view different types of media on the internet. Fell free to install any all internet plugins to help you enjoy a better internet experience. All dashboard widgets are there for you, all features of 10.5.4 are there for you to enjoy!
By clicking Accept, you agree to the Terms of Service. Otherwise, click deny" buttons {"Accept", "Deny"} default button "Accept"
if answer is "Deny" then
Logout
end if
But when i try to use the "Deny" command, it wont lout out. It says that the variable answer is not defined. How do I get it to log the user out?
display dialog "Welcome to Mac OS X! Please remember that this computer is property of Andres Pena and IS NOT warantied. Any physical or software damage done to the computer will be charged to the person (s) will be charged for damage. So save your self the hassle, and don't ruin my Mac. Any and all applications that you wish to install must be approved by Andres Pena first. Any software updates are by me, so please don't do software update, I manage the updates. Plugins such as Flip4Mac are there for you to be able to view different types of media on the internet. Fell free to install any all internet plugins to help you enjoy a better internet experience. All dashboard widgets are there for you, all features of 10.5.4 are there for you to enjoy!
By clicking Accept, you agree to the Terms of Service. Otherwise, click deny" buttons {"Accept", "Deny"} default button "Accept"
if answer is "Deny" then
Logout
end if
But when i try to use the "Deny" command, it wont lout out. It says that the variable answer is not defined. How do I get it to log the user out?