• 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: Yvan KOENIG <email@hidden>
  • Date: Thu, 24 Dec 2015 17:25:51 +0100

> Le 2015/12/24 à 16:48, 2551 <email@hidden> a écrit :
>
>
>> 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

It seems that my wording was not clear.

I know how to put the handler in the library and edit the sdef accordingly.
In fact, it's already done.

I just posted the handler because I felt that it's a logical complement to your own library.

On mine I will add the handlers/commands converting a string in lowercase or in UPPERCASE


Yvan KOENIG running El Capitan 10.11.2 in French (VALLAURIS, France) jeudi 24 décembre 2015 17:25:47


 _______________________________________________
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


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

  • Prev by Date: Re: creating your own commands
  • Next by Date: Re: Force quitting from a script
  • Previous by thread: Re: creating your own commands
  • Next by thread: Re: creating your own commands
  • Index(es):
    • Date
    • Thread