• 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: creating your own commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creating your own commands


  • Subject: Re: creating your own commands
  • From: 2551 <email@hidden>
  • Date: Thu, 24 Dec 2015 22:48:18 +0700

> On 24 Dec 2015, at 21:54, Yvan KOENIG <email@hidden> wrote:
>
>
> Maybe it would be fine to add this Shane Stanley's handler which like yours remove space and newline characters at the beginning and end of the passed string but also replace groups of space characters by single one.

Shane’s handlers conform to AppleScript/ASObjC syntax, so they don’t need adding to an SDEF file to be compiled (though you could add them to provide dictionary info in your library suite)

However, what I was trying to add here was something a bit different; namely, adding commands in more natural  AppleScripty kind of syntax, so instead of

set x to cleanUpText:mydirtyText

you can write something more natural like

set x to clean up mydirtyText

To do that you would need to follow the process I outlined in the first post of this thread. In particular, watch the video on OSX Automation. It’s very good and easy to follow.




Best


Phil



 _______________________________________________
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: creating your own commands
      • From: Yvan KOENIG <email@hidden>
References: 
 >creating your own commands (From: 2551 <email@hidden>)
 >Re: creating your own commands (From: 2551 <email@hidden>)
 >Re: creating your own commands (From: Yvan KOENIG <email@hidden>)
 >Re: creating your own commands (From: 2551 <email@hidden>)
 >Re: creating your own commands (From: 2551 <email@hidden>)
 >Re: creating your own commands (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: creating your own commands
  • Next by Date: Re: creating your own commands
  • Previous by thread: Re: creating your own commands
  • Next by thread: Re: creating your own commands
  • Index(es):
    • Date
    • Thread