Studio 8.1 Printer Error

Doug Easterbrook doug at artsman.com
Fri Aug 17 14:26:02 EDT 2018


hi Michael


getenv('HOME’)  has always returned a POSIX path name

in studio 5 and in studio 8.    it returns the same thin.


in studio 5, your code converts it to hfs  (its right in your code)

>>>>>> Do FileOps.$convertposixpathtohfspath(con(lHome,'/','Desktop','/','Agents.csv'),lPutFIlePath)



in studio 8, you don’t need to do that.




Doug Easterbrook
Arts Management Systems Ltd.
mailto:doug at artsman.com
http://www.artsman.com
Phone (403) 650-1978

> On Aug 17, 2018, at 9:09 AM, Michael Matthews via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
> 
> Groovy!
> 
> Which means the GetEnv() function still gives out older HFS info, and not POSIX style.  One to shove back maybe to Omnis support.
> 
> Mike
> 
> 
> 
> Mike Matthews, Managing Director, Lineal Software Solutions Ltd
> 
> Apple Reseller, Microsoft Partner, SQLWorks Business Partner
> phone: 01271 375999 | web: lineal.co.uk <http://www.lineal.co.uk/> | email: omnis at lineal.co.uk <mailto:mike.matthews at lineal.co.uk>
> 
>> On 17 Aug 2018, at 15:48, Plum Hollow Software <plum_hollow at cogeco.ca> wrote:
>> 
>> Worked like a charm - Thanks
>> 
>>> On Aug 17, 2018, at 9:43 AM, Michael Matthews via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
>>> 
>>> Ok, so after the function, there should be no semi colons at all.  Just ‘/‘.
>>> 
>>> So do the convert function on the getEnv() function first.
>>> 
>>> Then add the other parts after, and use sys(9) as the delimeter between ‘Desktop’ and ‘Agents.csv’.  Sys(9) returns the correct delim fro your current OS and Omnis version.
>>> 
>>> Mike
>>> 
>>> 
>>> 
>>> Mike Matthews, Managing Director, Lineal Software Solutions Ltd
>>> 
>>> Apple Reseller, Microsoft Partner, SQLWorks Business Partner
>>> phone: 01271 375999 | web: lineal.co.uk <http://www.lineal.co.uk/> | email: omnis at lineal.co.uk <mailto:mike.matthews at lineal.co.uk>
>>> 
>>>> On 17 Aug 2018, at 14:07, Plum Hollow Software <plum_hollow at cogeco.ca> wrote:
>>>> 
>>>> 
>>>> 
>>>>> On Aug 17, 2018, at 8:51 AM, Michael Matthews via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
>>>>> 
>>>>> What is the final value of lPutFIlePath afetrteh FileOps?
>>>> 
>>>> lPutFIlePath=Mac HD:Users:CarolB:Desktop:Agents.csv
>>>>> 
>>>>> I think the getenv() result is already HFS and then you dd posix path data.  So maybe a mixture of type so the convert function does nothing?
>>>>> 
>>>>> And that you have R/W privs to your desktop folder, which I imagine you do have.  But test just in case.
>>>>> 
>>>>> Just a guess.
>>>>> 
>>>>> Mike
>>>>> 
>>>>> 
>>>>> 
>>>>> Mike Matthews, Managing Director, Lineal Software Solutions Ltd
>>>>> 
>>>>> Apple Reseller, Microsoft Partner, SQLWorks Business Partner
>>>>> phone: 01271 375999 | web: lineal.co.uk <http://www.lineal.co.uk/> | email: omnis at lineal.co.uk <mailto:mike.matthews at lineal.co.uk>
>>>>> 
>>>>>> On 17 Aug 2018, at 13:43, Plum Hollow Software <plum_hollow at cogeco.ca> wrote:
>>>>>> 
>>>>>> Hi List,
>>>>>> 
>>>>>> I client just bought a new iMac with 10.13 - High Sierra and cannot export a file now without getting this error:
>>>>>> 
>>>>>> E101681: Print manager Omnis Error: Unexpected error, action attempted on a closed physical file.
>>>>>> 
>>>>>> Any suggestions?  Worked on her older mac.
>>>>>> 
>>>>>> Here is my code:
>>>>>> 
>>>>>> 		Calculate lHome as getenv('HOME')
>>>>>> 		Do FileOps.$convertposixpathtohfspath(con(lHome,'/','Desktop','/','Agents.csv'),lPutFIlePath)
>>>>>> 		Set search as calculation {fagents.AG_REG_BUT=1&fagents.AG_DontShowAgentWebChkbx=0}
>>>>>> 		Set report name rftpagents
>>>>>> 		Send to file
>>>>>> 		Set print or export file name {[lPutFIlePath]}
>>>>>> 		Print report (Use search)
>>>>>> 
>>>>>> 
>>>>>> Thanks,
>>>>>> 
>>>>>> Randy Wilson
>>>>>> Plum Hollow Software Inc.
>>>>>> plum_hollow at cogeco.ca
>>>>>> 905-563-6516
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> _____________________________________________________________
>>>>>> Manage your list subscriptions at http://lists.omnis-dev.com
>>>>>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>>>>> 
>>>>> _____________________________________________________________
>>>>> Manage your list subscriptions at http://lists.omnis-dev.com
>>>>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>>>> 
>>>> _____________________________________________________________
>>>> Manage your list subscriptions at http://lists.omnis-dev.com
>>>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>>> 
>>> _____________________________________________________________
>>> Manage your list subscriptions at http://lists.omnis-dev.com
>>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
>> 
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com



More information about the omnisdev-en mailing list