Using AS to put a password on zipped files (was Re: relative paths etc...)
Using AS to put a password on zipped files (was Re: relative paths etc...)
- Subject: Using AS to put a password on zipped files (was Re: relative paths etc...)
- From: Jean-Christophe Helary <email@hidden>
- Date: Sun, 31 Dec 2017 23:20:29 +0900
3 days later, I finished coding, the result is reasonably clean, it works, and
it's the last article I'll post this year (45 mn to midnight here...)
Thanks to a lot of people here I had an excellent 2017. I'm really glad I stuck
to AS even though I still do not understand a lot. It is not easy, but it is
very rewarding to write code, write about code and think about what can be
improved in my daily computer routine.
I'm hoping 2018 treats you all well and that Apple manages to keep AS alive for
the decade to come...
https://mac4translators.blogspot.jp/2017/12/putting-password-on-zip-files-with.html
Jean-Christophe
> On Dec 27, 2017, at 18:59, Jean-Christophe Helary
> <email@hidden> wrote:
>
> I seem to be wasting a lot of time on something that may already exist...
>
> I'm trying to find a way to add/subtract paths to files.
>
> Like, I have a path from / and I want to subtract it from the path to a given
> file so that I end up with a path relative to the end of the first path.
> Sorry it it's not clear:
>
> original path:
> /path/to/folder
>
> path to subtract it from:
> /path/to/folder/path/from/folder/file
>
> result:
> ./path/from/folder/file
>
> the idea being that I need to cd to the shortest path and work on the files
> *relative to that position*.
>
> I just want to know if there is a way to accomplish that that does not
> involve weird (path as string) manipulations...
>
> (I spent the whole morning fighting with the "a reference to" and I'm still
> bleeding)
>
> 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