• 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 15:23:15 +0100


Le 2015/12/24 à 15:02, 2551 <email@hidden> a écrit :

…

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
<dictionary>
<suite name="ASTU" code="ASTU" description="Commands to edit text">
<command name="substring preceeding" code="SQTXSUBB" description="">
            <direct-parameter type="text" description="Get the string up to a first occurrence of a substring"/>
            <parameter name="from" code="FRoM" type="text" description="..."/>
            <documentation>
                <html>
                    <![CDATA[<p>set s to substring preceeding "world" from "hello world"</p>
                    <p>--> "hello "</p]]>
                </html>
            </documentation>
        </command>


        <command name="substring following" code="SQTXSUBA" description="">
            <direct-parameter type="text" description="Get the rest of the string after the first occurence of a substring"/>
            <parameter name="from" code="FRoM" type="text" description="..."/>
            <documentation>
                <html>
                    <![CDATA[<p>set s to substring following "hello " from "hello world"</p><p>--> "world"</p>]]>
                </html>
            </documentation>
        </command>


        <command name="remove whitespace" code="SQTXRMWS" description="">
            <direct-parameter type="text" description="Remove extraneous whitespace and new line characters from beginning and end of a substring"/>
            
            <documentation>
                <html>
                    <![CDATA[<p>set s to remove whitespace "  hello world  "</p><p>--> "hello world"</p>]]>
                </html>
            </documentation>
        </command>

</suite>


</dictionary>

Thanks Phil

Just a question.
Is there a reason explaining why there is no character  greaterThan at the end of the documentation for "substring preceeding" although there is one at the end of the two  others ?


Yvan KOENIG running El Capitan 10.11.2 in French (VALLAURIS, France) jeudi 24 décembre 2015 15:23:08



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