Re: relative paths etc...
Re: relative paths etc...
- Subject: Re: relative paths etc...
- From: Jean-Christophe Helary <email@hidden>
- Date: Wed, 27 Dec 2017 22:26:00 +0900
> On Dec 27, 2017, at 20:56, Shane Stanley <email@hidden> wrote:
>
> 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
That pretty much fits my definition :)
But thank you. I'll see which of your approach and Yves is easier to fit in my
code and will probably come back here for further hints.
In the meanwhile, I hope you all have nice holidays.
Jean-Christophe Helary
-----------------------------------------------
@brandelune http://mac4translators.blogspot.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