Re: Passing argumenst to C executable from Apple script
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