Mac OS Terminal Zip Command – Run from Omnis
Thanks Alex,
I tried that and that does it seem to be it either.
I had actually already used full paths that I got from Omnis. i.e. /Users/Michael/Desktop/Omnis 4321/Pictures
I was just shortening it since Terminal allowed me to do it.
Anyway, same error with all three versions.
It’s going to be something stupid. I can feel it.
*********************************************************************
Michael Mantkowski
ClienTrax Software
1-614-875-2245
*********************************************************************
—–Original Message—–
From: omnisdev-en [mailto:omnisdev-en-bounces@lists.omnis-dev.com] On Behalf Of Alex Clay
Sent: Friday, November 17, 2017 4:33 PM
To: OmnisDev List – English <omnisdev-en@lists.omnis-dev.com>
Subject: Re: Mac OS Terminal Zip Command – Run from Omnis
Hi Michael,
I recommend using an absolute path. This likely works in Terminal because your working directly is your home folder, when Desktop lives. However, Omnis may have a different working directory. Try this to use the current user’s desktop:
> Text: do shell script “Zip -r ${HOME}/Desktop/Test.zip
> ${HOME}/Desktop/Omnis 4321/Pictures” (Carriage return)
${HOME} will be replaced with the user’s home folder.
Alex
> On Nov 17, 2017, at 16:24, Michael Mantkowski <michaelj@clientrax.com> wrote:
>
> Hi Doug,
>
> That works great in Terminal Direct.
>
> But get the same error when trying it from Omnis. I simplified it to put the Test.zip file on the Desktop.
>
> Begin text block
> Text: do shell script “Zip -r Desktop/Test.zip Desktop/Omnis
> 4321/Pictures” (Carriage return) End text block Get text block lvText
> Do $runapplescript(lvText,lvReturn) Returns lvError
>
> *********************************************************************
> Michael Mantkowski
> ClienTrax Software
> 1-614-875-2245
> *********************************************************************
>
>
> —–Original Message—–
> From: omnisdev-en [mailto:omnisdev-en-bounces@lists.omnis-dev.com] On
> Behalf Of Doug Easterbrook
> Sent: Friday, November 17, 2017 4:10 PM
> To: OmnisDev List – English <omnisdev-en@lists.omnis-dev.com>
> Subject: Re: Mac OS Terminal Zip Command – Run from Omnis
>
> you may need to escape the spaces instead of using quotes.
>
> eg try:
>
> Zip -r Desktop/Omnis 4321/Test.zip Desktop/Omnis 4321/Pictures
>
>
> (I put a
>
> thats how terminal handles it generally … and probably how qpplescript
> will allow it
>
>
>
>
>
> Doug Easterbrook
> Arts Management Systems Ltd.
> mailto:doug@artsman.com
> www.artsman.com
> Phone (403) 650-1978
>
>
>
>
> see you at the third annual users conference
> tickets.proctors.org/TheatreManager/95/online?performance=2908
> 6
> <tickets.proctors.org/TheatreManager/95/online?performance=290
> 86>
>> On Nov 17, 2017, at 2:05 PM, Michael Mantkowski <michaelj@clientrax.com> wrote:
>>
>> I can run th efollowing command in OSX Terminal and it will create a Zip file of all the files in the Pictures folder.
>>
>> Zip -r “Desktop/Omnis 4321/Test.zip” “Desktop/Omnis 4321/Pictures”
>>
>> However, when I try to do it from Omnis with the below code I get lvError=1753 (Script Error). I suspect it has to do with the Quotes. Tried several variations but no luck. Any ideas?
>>
>> Begin text block
>> Text: do shell script ” Zip -r “Desktop/Omnis 4321/Test.zip”
>> “Desktop/Omnis 4321/Pictures”” (Carriage return) End text block Get
>> text block lvText Do $runapplescript(lvText,lvReturn) Returns lvError
>>
>> *********************************************************************
>> Michael Mantkowski
>> ClienTrax Software
>> 1-614-875-2245
>> *********************************************************************
>>
>>
>> _____________________________________________________________
>> Manage your list subscriptions at lists.omnis-dev.com
>
>
> _____________________________________________________________
> Manage your list subscriptions at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com