Zipping of files
Peter van Rooij
pfvanrooij at gmail.com
Mon Feb 8 08:11:12 EST 2016
Hello MIke
When I use
Do FileOps.$getfilename(lPath)
To get the filename of a file on my USB-stick, it works alright
the filename for the script becomes:
file "LocPref.txt" in the folder "SP UFD U2"
Where the folder SP UFD U2 is my Usb-stick
HTH
Peter
> On 8 feb. 2016, at 14:01, Mike Matthews <omnis at lineal.co.uk> wrote:
>
> Hello Peter,
>
> That is what I have done in the past, do you know if you can set a different Volume for the ZIP file from the source file?
>
> Mike
>
>
>
>
> Mike Matthews,
> Managing Director, SQLWorks Software Ltd
>
> Tel: +44 (0)1271 850550
>
> Email: mike.matthews at sqlworks.co.uk
>
> Web: www.sqlworks.co.uk
>
> SQLWorks replaces Sage, ACT!, Opera, Access, SAP
>
> On 8 Feb 2016, at 12:55, Peter van Rooij <pfvanrooij at gmail.com> wrote:
>
>> Hello
>>
>> You could use an applescript under MacOs :
>>
>> tell application "Finder"
>> select the [@FileOrFolderPath]
>> set theItem to selection as alias
>> set itemPath to quoted form of POSIX path of theItem
>> set fileName to name of theItem
>> set theFolder to POSIX path of (container of theItem as alias)
>> set zipFile to quoted form of (theFolder & fileName & ".zip")
>> do shell script "zip -r -j " & zipFile & " " & itemPath
>> end tell
>>
>> you replace [@FileOrFolderPath] with the path you want.
>> Something like
>>
>> file "LocPref.txt" in the folder "Clientrix" in the folder "Desktop" in the folder "petervanrooij" in the folder "Users" in the folder "Macintosh HD”
>>
>> HTH
>>
>> Peter
>>
>>
>>
>>
>>> On 8 feb. 2016, at 13:42, Phil (OmnisList) <phil at pgpotter.co.uk> wrote:
>>>
>>> Hi Dawid,
>>>
>>> Are you saying there is an Omnis external that has been written to use the 7zip code?
>>>
>>> regards
>>> Phil Potter
>>> Based in Chester in the UK.
>>>
>>>
>>>
>>> On 08/02/2016 12:23, Dawid Mocke wrote:
>>>> Integration into 7z (www.7-zip.org)?
>>>> On 08 Feb 2016 2:22 PM, "Mike Matthews" <omnis at lineal.co.uk> wrote:
>>>>
>>>>> Hello All,
>>>>>
>>>>> Does Studio support Zipping of files yet? I found the compress()
>>>>> function, but that is for binary data fields, rather than files. This file
>>>>> is too large to load into RAM, compress and then save out to a file.
>>>>>
>>>>> Thanks
>>>>>
>>>>> Mike
>>>>>
>>> _____________________________________________________________
>>> Manage your list subscriptions at http://lists.omnis-dev.com
>>
>>
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>
>
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
More information about the omnisdev-en
mailing list