dbTalk Databases Forums  

Filepath Mac vs PC

comp.databases.filemaker comp.databases.filemaker


Discuss Filepath Mac vs PC in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dc
 
Posts: n/a

Default Filepath Mac vs PC - 04-15-2010 , 07:14 PM






I am using the new FMP 11 recurring import table, which works pretty
well for my needs, but I have a filepath problem that others must have
come across:

I have set the path up in a Mac environment, but when PC users try and
make the import they can't find the file. I am almost certain this is
because of the "/" vs "\" of Macs and PCs. Is there some sort of if
then script that I can put in depending on what platform is performing
the import?

Reply With Quote
  #2  
Old   
Lou Lesko
 
Posts: n/a

Default Re: Filepath Mac vs PC - 04-15-2010 , 08:44 PM






On 2010-04-15 17:14:53 -0700, dc said:

Quote:
I am using the new FMP 11 recurring import table, which works pretty
well for my needs, but I have a filepath problem that others must have
come across:

I have set the path up in a Mac environment, but when PC users try and
make the import they can't find the file. I am almost certain this is
because of the "/" vs "\" of Macs and PCs. Is there some sort of if
then script that I can put in depending on what platform is performing
the import?
Can you tell us how you have your filepaths set up?

Lou

Reply With Quote
  #3  
Old   
Your Name
 
Posts: n/a

Default Re: Filepath Mac vs PC - 04-16-2010 , 01:33 AM



"dc" <damienvfx (AT) gmail (DOT) com> wrote

Quote:
I am using the new FMP 11 recurring import table, which works pretty
well for my needs, but I have a filepath problem that others must have
come across:

I have set the path up in a Mac environment, but when PC users try and
make the import they can't find the file. I am almost certain this is
because of the "/" vs "\" of Macs and PCs. Is there some sort of if
then script that I can put in depending on what platform is performing
the import?
One of the Get functions will tell you which OS the database is running on,
but I can't recall what name it is. Using that you could create an If
statement to use the appropriate path with the Import Script command,
e.g. in psuedo-code:

If (Get[Platform] = "Mac")
Import [MacPath]
Else
Import [PCPath]
End If

or change the filepath for a single Import Script command,
e.g. in psuedo-code:

If (Get[Platform] = "Mac")
Set Field [Path; MacPath]
Else
Set Field[Path; PCPath]
End If
Import [Path]


Helpful Harry )

Reply With Quote
  #4  
Old   
Philippe Manet
 
Posts: n/a

Default Re: Filepath Mac vs PC - 04-18-2010 , 02:00 PM



Your Name <your.name (AT) isp (DOT) com> wrote:

Quote:
One of the Get functions will tell you which OS the database is running on,
but I can't recall what name it is.
Get ( SystemPlatform )=-2 for a Win
else it'a a mac

I use it in a document gestion app, working on the 2 plateforms

--
Philippe Manet
en fait, c'est manet avant @

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.