re: need help stoppin an applescript
re: need help stoppin an applescript
- Subject: re: need help stoppin an applescript
- From: Ken Dobson <email@hidden>
- Date: Fri, 05 Jan 2001 20:28:59 -0500
Could you turn your "is" into a "is not"?
tell application "Finder"
set my_name to owner name of (machine environment)
if my_name is not "Admin" then
--do some stuff--
end if
end tell
>
Subject: Need help stopping an applescript
>
From: Lance Ogletree <email@hidden>
>
To: AppleScript List <email@hidden>
>
>
I have a script I am writing I need some help with.
>
The first part of the script does a check on the owner name of the machine.
>
What I want to do is to stop the script from proceeding any further if I get
>
a valid check on the owner name.
>
>
tell application "Finder"
>
set my_name to owner name of (machine environment)
>
if my_name is "Admin" then
>
>
end if
>
end tell
>
>
tell application "Desktop Printer Manager"
>
delete every desktop printer
>
tell application "Finder"
>
set myEther to ethernet address of (machine environment)
>
>
What syntax is needed for me to stop this script if my_name is "Admin"?
>
I only want the script to proceed further down if my_name is not "Admin".