• 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: "Marc K. Myers" <email@hidden>
  • Date: Thu, 04 Jan 2001 23:45:29 -0500
  • Organization: [very little]

Lance Ogletree wrote:
> Date: Thu, 04 Jan 2001 15:49:37 -0600
> 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".

if my_name is "Admin" then
return
end if

Marc [1/4/01 11:44:51 PM]


  • Follow-Ups:
    • Re: Need help stopping an applescript
      • From: Lance Ogletree <email@hidden>
  • Prev by Date: Properties... A tutorial?
  • Next by Date: Re: quitting an applet
  • Previous by thread: Re: Need help stopping an applescript
  • Next by thread: Re: Need help stopping an applescript
  • Index(es):
    • Date
    • Thread