• 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: Passing argumenst to C executable from Apple script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing argumenst to C executable from Apple script


  • Subject: Re: Passing argumenst to C executable from Apple script
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 19 Apr 2008 08:33:30 +1000
  • Thread-topic: Passing argumenst to C executable from Apple script

On 19/4/08 7:00 AM, "Mark J. Reed" <email@hidden> wrote:

> My try at doing it stringishly:
>
> on containerOf(anAlias)
>   set tid to text item delimiters
>   set text item delimiters to ":"
>   set parentChain to reverse of text items of (anAlias as alias as string)
>   repeat while beginning of parentChain is ""
>      set parentChain to rest of parentChain
>   end repeat
>   set containerPath to (reverse of rest of parentChain) as string
>   set text item delimiters to tid
>   containerPath as alias
> end containerOf

Or not quite so stringishly:

on containerOf(anAlias)
    set tid to text item delimiters
    set text item delimiters to ":"
    set containerPath to (text 1 thru text item -2 of (anAlias as Unicode
text)) & ":"
    set text item delimiters to tid
    containerPath as alias
end containerOf


--
Shane Stanley <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: Passing argumenst to C executable from Apple script
      • From: Philip Aker <email@hidden>
References: 
 >Re: Passing argumenst to C executable from Apple script (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Passing argumenst to C executable from Apple script
  • Next by Date: Re: Passing argumenst to C executable from Apple script
  • Previous by thread: Re: Passing argumenst to C executable from Apple script
  • Next by thread: Re: Passing argumenst to C executable from Apple script
  • Index(es):
    • Date
    • Thread