Re: relative paths etc...
Re: relative paths etc...
- Subject: Re: relative paths etc...
- From: Shane Stanley <email@hidden>
- Date: Wed, 27 Dec 2017 22:56:29 +1100
On 27 Dec 2017, at 8:59 pm, Jean-Christophe Helary
<email@hidden> wrote:
>
> I just want to know if there is a way to accomplish that that does not
> involve weird (path as string) manipulations...
I guess it depends on your definition of weird.
set fullPath to "/path/to/folder/path/from/folder/file"
set rootPath to "/path/to/folder"
set relpath to "." & text ((length of rootPath) + 1) thru -1 of fullPath
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
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