• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Need help stopping an applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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. |
----------------------------------------------------------------------


  • Prev by Date: Re: Resize scripting with photoshop 5.0
  • Next by Date: Re: Resize scripting with photoshop 5.0
  • Previous by thread: Re: Need help stopping an applescript
  • Next by thread: Re: Need help stopping an applescript
  • Index(es):
    • Date
    • Thread