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

Re: varibles in handler


  • Subject: Re: varibles in handler
  • From: "Mark J. Reed" <email@hidden>
  • Date: Mon, 17 Jan 2011 17:38:11 -0500

I don't understand what you're talking about with variables in
handlers, or what problem you're trying to solve?

On Mon, Jan 17, 2011 at 5:17 PM, Robert Poland <email@hidden> wrote:
> Hi,
>
> Since this use of a variable in a handler call apparently is not allowed, why not;
>
> my setDelimiters(originalDelimiters)
>
> -- Complete test script
> global applicationName, originalDelimiters
>
> set AppleScript's text item delimiters to ""
> set applicationName to "GraphicConverter.app"
> my setDelimiters(".")
> set applicationName to my fixLinkToGraphicConverter(applicationName) -- seperate GraphicConverter6 & GraphicConverter7
> my setDelimiters(originalDelimiters)
>
> tell application "System Events"
>        activate
>        display dialog applicationName & return & "-" & AppleScript's text item delimiters & "-" default button 1
> end tell
>
> on setDelimiters(newDelimiter)
>        set originalDelimiters to AppleScript's text item delimiters
>        set AppleScript's text item delimiters to newDelimiter -- parse off ".app"
>        -- set AppleScript's text item delimiters to originalDelimiters
> end setDelimiters
>
> on fixLinkToGraphicConverter(applicationName) -- seperate GraphicConverter6 & GraphicConverter7
>        my setDelimiters(".")
>        set applicationName to (first text item of applicationName)
>        my setDelimiters(originalDelimiters)
>        return applicationName
> end fixLinkToGraphicConverter
>
>
> Robert Poland - Fort Collins, CO
>
>
>
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
>



--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: varibles in handler
      • From: Robert Poland <email@hidden>
References: 
 >varibles in handler (From: Robert Poland <email@hidden>)

  • Prev by Date: varibles in handler
  • Next by Date: Re: varibles in handler
  • Previous by thread: varibles in handler
  • Next by thread: Re: varibles in handler
  • Index(es):
    • Date
    • Thread