At 4:05 PM +0000 2/6/09, Frank Peelo apparently wrote:
>Ken G. Brown wrote:
>>Basically from point of sale system running on Macintosh, I needed
>>to pick up a file with a known name located in the same folder as
>>the application bundle, and process it for printing in a custom
>>format. This way it does not need the file path hard coded in case
>>it is different on the different computers.
>
>But, does what Jonas said not apply here? Is the Mac a multi-user machine now? 
>Even Windows has different users, hence c:\Documents and Settings\<username>
>
>If the Mac has different users, maybe the file to be printed/processed should 
>go in the user's home directory? If the machine is to be used as a single POS 
>terminal, then a standard location for the file might be appropriate (does the 
>Mac have an equivalent to the Filesystem Hierarchy Standard in Linux?)

The POS computer is always automatically booted into a single user that is 
always the same but not necessarily the same user on a different terminal.
The information from the POS software for a custom invoice print format is 
presented in a file in the current folder of the POS software, I don't think 
there is a setting to control that but I'll look. So easiest for me right now 
is to put the custom print format output program there too, then the program 
works wherever the POS software is.

Thx,
Ken

>I don't know the Mac, or your app, so this is probably all wrong, or 
>inappropriate for you -- but I thought it worth mentioning because when I 
>started using Linux it was not at all obvious to me that what Jonas described 
>(the Unixy way of doing things) could work instead of the Windows way of 
>putting files in the same directory as the .exe file. But, surprisingly, it 
>does work quite well :)
>
>Frank
>
>_______________________________________________
>fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
>http://lists.freepascal.org/mailman/listinfo/fpc-pascal

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to