Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Need help with exporting using Get(DesktopPath)


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

Recommended Posts

Posted

Howdy, all:

I know this topic was covered elsewhere (for FM 6), but this has a different twist on it and is needed for an FMP v10.x. runtime, so my apologies if it seems like a dupe.

I'm having a little trouble phrasing a script step so the records exported from a file (alpha.fp7) always ends up on the end user's desktop. I've attached a .jpg of the Output File Path List but don't know how to phrase the statement that goes in the box. I tried plugging in Get(DesktopPath) but FMP just laughed at me. What should I use using the Windows platform?

TIA for your help!

Rich

export.jpg

Posted

You need to set a $var to the path, then enter $var in the Output File Path dialog.

Set $exportPath to "file:" & Get (DesktopPath) & "filename.ext"

where "filename.ext" can be a field value and so it wouldn't be in quotes.

Posted (edited)

Ah. Thanks! I've attached a .png of the coding so others may benefit from your help; I hope you don't mind.

export.png

Edited by Guest
Posted

[color:brown]I am somewhat confused by what is going on with your solution. Can you elaborate? Thanks.

You need to set a $var to the path, then enter $var in the Output File Path dialog. [color:red]This seems straight forward.

Set $exportPath to "file:" & Get (DesktopPath) & "filename.ext"

[color:red]Where did the variable [color:blue]$exportPath [color:red]come from?

where "filename.ext" can be a field value and so it wouldn't be in quotes.

Posted

Sorry, Ron. Rather than a non-descript name for the $var, I named it $exportPath.

So, you set $exportPath to "file:" & Get (DesktopPath) & filename

Posted

Sorry, Ron. Rather than a non-descript name for the $var, I named it $exportPath.

So, you set $exportPath to "file:" & Get (DesktopPath) & filename

So, are you saying that $exportPath and $Var are the same?

This topic is 5568 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
×
×
  • Create New...

Important Information

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