O$4 - Cross platform path names

Mike Matthews omnis at lineal.co.uk
Sat Aug 24 05:28:58 EDT 2013


I believe it does, as all Omnis commands use the OS delimiter.  There is also a POSIX path convertor function.

Mike




Mike Matthews,
 Managing Director, SQLWorks Software Ltd

Tel: +44 (0)1271 850 550

Email: mike.matthews at sqlworks.co.uk

Web: www.sqlworks.co.uk

SQLWorks replaces Sage, ACT!, Opera, Access, SAP

On 24 Aug 2013, at 00:25, Jeffrey Jones <jjones at synergos.com> wrote:

> Thanks Mike,
> 
> I am using the Open Library command, i.e.
> 
> 	Open library (do not close others) {[PATHNAME],CO_LIBRARY}
> 
> Does the Open library command require the colon delimiter on OS X?
> 
> -Jeff
> 
> 
> On Aug 23, 2013, at 3:16 PM, Mike Matthews <omnis at lineal.co.uk> wrote:
> 
>> Mac OSX Omnis uses the : version of path names, but the SQL Db you could use would use the posix version with / as a delimiter.  But for sure, all FileOps commands use the : or sys(9) as the path delimiter in OSX.
>> 
>> The volume name also changes in Posix world, Windows world and OSX world.  In the Windows world, you can use the drive letter or a fully qualified names, i.e., \\server\pathname or Z:\drive
>> 
>> Interesting differences, but by using sys(9), it helps translates the path between the 2 different OS, mostly.
>> 
>> Mike
>> 
>> 
>> 
>> 
>> Mike Matthews,
>> Managing Director, SQLWorks Software Ltd
>> 
>> Tel: +44 (0)1271 850 550
>> 
>> Email: mike.matthews at sqlworks.co.uk
>> 
>> Web: www.sqlworks.co.uk
>> 
>> SQLWorks replaces Sage, ACT!, Opera, Access, SAP
>> 
>> On 23 Aug 2013, at 23:08, Andy Hilton <andyh at totallybrilliant.com> wrote:
>> 
>>> Depends whether you are using posix addressing or not......but for the 'normal' mac use the colon still lives.......
>>> 
>>> Andy
>>> 
>>> On Aug 23, 2013, at 5:40 PM, Jeffrey Jones <jjones at synergos.com> wrote:
>>> 
>>>> I thought they stopped using the colon in OS X, but I'll give it a try.
>>>> 
>>>> -Jeff
>>>> 
>>>> On Aug 23, 2013, at 1:27 PM, Andy Hilton <andyh at totallybrilliant.com> wrote:
>>>> 
>>>>> Jeff
>>>>> 
>>>>> I would suggest trying :
>>>>> 
>>>>>> Company-pc:Company:MarinaWare:Program Files:company.lbs
>>>>> 
>>>>> Assuming your mounted volume on the mac is called 'Company-pc' which is by no means a given !!
>>>>> 
>>>>> You can use the optional constant sys(9) as your platform-specific file delimiter if you wanted to do any conversions from one form to another (ie to do a replaceall of '\' to ':')
>>>>> 
>>>>> Andy
>>>>> 
>>>>> On Aug 23, 2013, at 4:09 PM, Jeffrey Jones <jjones at synergos.com> wrote:
>>>>> 
>>>>>> Hi All,
>>>>>> 
>>>>>> Using Studio 4.3.2.1 Unicode, Windows server, windows clients, and one Mac OS X client.
>>>>>> 
>>>>>> I'm storing a pathname to the server and a second library that I open from within the main library.
>>>>>> 
>>>>>> Pathname on Windows client side is:
>>>>>> 
>>>>>> 	\\Company-pc\Company\MarinaWare\Program Files\company.lbs
>>>>>> 
>>>>>> This library opens fine from the windows client side, but not from the Mac OS X side.
>>>>>> 
>>>>>> On the Mac I have tried:
>>>>>> 
>>>>>> 	//Company-pc/Company/MarinaWare/Program Files/company.lbs
>>>>>> 
>>>>>> 	/Company-pc/Company/MarinaWare/Program Files/company.lbs
>>>>>> 
>>>>>> 	/Volumes/Company-pc/Company/MarinaWare/Program Files/company.lbs
>>>>>> 
>>>>>> 	/Volumes/Company/MarinaWare/Program Files/company.lbs
>>>>>> 
>>>>>> 	/Company/MarinaWare/Program Files/company.lbs
>>>>>> 
>>>>>> None of these pathnames will work. I get a message that says that the file could not be opened. The share from the windows server is mounted and visible on the mac side. The Mac user is connected with full read write access.
>>>>>> 
>>>>>> Any suggestions?
>>>>>> 
>>>>>> -Jeff
>>>>>> 
>>>>>> _____________________________________________________________
>>>>>> 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
>>> 
>>> _____________________________________________________________
>>> 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