• 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: Subroutines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subroutines


  • Subject: Re: Subroutines
  • From: email@hidden
  • Date: Mon, 8 Jan 2001 11:51:44 -0500

set result to SubRoutineName()
display dialog result

on SubRoutineName()
set x to 2
return 2
end SubRoutineName

-Steve




email@hidden on 01/08/2001 11:41:38 AM

To: email@hidden
cc:
Subject: Subroutines



Is there a way to do subroutines in applescript?

I saw an example that went something like this:

on SubRoutineName()
commands
end SubRoutineName

If that works, how do I call the subroutine?

Thanks,
--SGross
_______________________________________________
applescript-users mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/applescript-users


  • Follow-Ups:
    • Re: Subroutines
      • From: "Randy Fingeroot" <email@hidden>
  • Prev by Date: Re: Line breaks
  • Next by Date: Re: Create a list of lists?
  • Previous by thread: Subroutines
  • Next by thread: Re: Subroutines
  • Index(es):
    • Date
    • Thread