Jump to content

Import path for Mac or PC


This topic is 389 days old. Please don't post here. Open a new topic instead.

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
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.

Link to post
Share on other sites

This topic is 389 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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
  • Who Viewed the Topic

    7 members have viewed this topic:
    bcooney  Dancie  cater  Wim Decorte  Ocean West  JLF  jbrown 

×
×
  • Create New...

Important Information

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