Re: Need help stopping an applescript
Re: Need help stopping an applescript
- Subject: Re: Need help stopping an applescript
- From: Michelle Steiner <email@hidden>
- Date: Thu, 4 Jan 2001 14:45:59 -0800
On 1/4/01 1:49 PM, Lance Ogletree <email@hidden> wrote
>
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".
tell application "Finder"
set my_name to owner name of (machine environment)
if my_name is not "Admin" then
tell application "Desktop Printer Manager"
delete every desktop printer
tell application "Finder"
-- set myEther to ethernet address of (machine environment)
-- the above line generates a syntax error
end tell
end tell
end if
end tell
--Michelle
----------------------------------------------------------------------
| Michelle Steiner | Hard as it may be to believe, my |
| email@hidden | life has been based on a true story. |
----------------------------------------------------------------------