August 21, 200916 yr 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
August 21, 200916 yr 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.
August 22, 200916 yr Author Ah. Thanks! I've attached a .png of the coding so others may benefit from your help; I hope you don't mind. Edited August 22, 200916 yr by Guest
August 23, 200916 yr [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.
August 23, 200916 yr Sorry, Ron. Rather than a non-descript name for the $var, I named it $exportPath. So, you set $exportPath to "file:" & Get (DesktopPath) & filename
August 23, 200916 yr 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?
Create an account or sign in to comment