Re: Handling Folders for Parent Path Reporting
Re: Handling Folders for Parent Path Reporting
- Subject: Re: Handling Folders for Parent Path Reporting
- From: Andy Wylie <email@hidden>
- Date: Sun, 05 Jan 2003 17:37:44 +1300
on Sun, 05 Jan 2003 16:17:20 +1300 i wrote:
>
on Sat, 04 Jan 2003 18:12:03 -0500 Gary Lists wrote:
>
>
>I use the following to retrieve the "parent" folder information about files.
>
>
>
>My problem is dealing with a folder itself, and its last colon.
>
>
>
>
>
on parentFrom(x)
>
if x's character -1 = ":" then set x to x's text 1 thru -2
>
x's text 1 thru -(offset of ":" in x's items's reverse as string)
>
end parentFrom
>
longliner...
x's text 1 thru -((offset of ":" in (x's items 1 thru -2's reverse as
string)) + 1)
_____________________________ Andy
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.