Jump to content
Sign in to follow this  
Rich

Import path for Mac or PC

Recommended Posts

Greets, all:

I'm sure this has been asked but after searching through 168 pages of this forum, I couldn't find an answer so it's on me that if this is a repeat question. Sorry.

This involves FileMaker Pro v12 client and server on another company's machine in another location; I'm using a VPN to help out.

I want to code a script to import a file from the user's desktop (in a folder named StuAdd; the filename is Full_Download.xlsx) but I don't know how to code the syntax for importing from either a Mac or PC to the file on the server.

So far, I have:

Case ( Abs ( Get ( SystemPlatform ) ) = 1 ; "filemac:" ; "filewin:" ) & Get ( DesktopPath ) & 

...and that's as far as I got. I tried ...(Get (DesktopPath) & /StuAdd/Full_Download.xlsx, but that didn't work, so I need help with the syntax.

One question off the top of my head is, with FMP v12.x being so dated, does it even recognize .xlsx as an extension?

 

Cheers,

Rich

Edited by Rich

Share this post


Link to post
Share on other sites

The result of Get (DesktopPath) includes a trailing /, so try:

Get ( DesktopPath ) & "StuAdd/Full_Download.xlsx"

 

29 minutes ago, Rich said:

does it even recognize .xlsx as an extension?

The .xslx format is supported since at least version 10, if not earlier.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Similar Content

    • By Chris1961
      Hi

      I have a database which relies on me updating 17 Excel spread sheets every day. At present, I download the files using Internet Explorer and save them to ../Documents/Temp folder. Filemaker then imports everything from script.The url and filenames are always the same.

      It works fine but I was wondering if there is any way to get filemaker to do the downloading for me as well. Maybe I am asking just a bit too much though??

      Chris
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.