Re: creating your own commands
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