sijmons Posted November 12, 2010 Posted November 12, 2010 What is the exact syntax if you want to set a Flag to the SCDownload function. The ones I tried gave an error when saving the variable, e.g. SCDownload( $folderPath ; showSaveDialog )
Smef Posted November 12, 2010 Posted November 12, 2010 There aren't any flag parameters to set with the SCDownload Function. The syntax for the function is: SCDownload ( folderPath { ; destinationFolder } ) folderPath - The unique SuperContainer path destinationFolder - Optional URL or FileMaker path of the folder to download the file to (ie. /Macintosh HD/Users/Shared/Images) If you want to prompt the user for a location to save a file to you can use the SCChooseFile function to show a file chooser dialog box, and then use the result of that functioncall as the destinationFolder parameter.
sijmons Posted November 13, 2010 Author Posted November 13, 2010 hello David, thanks, the solution is simple indeed. I was sidetracked by the documentation that comes with the SC plugin: SCDownload ( folderPath { ; destinationFolder ; width ; height; key1=value1; key2=value2; ... } ) ....etc... Flags The following flags are valid for this function: showSaveDialog set this if you want a save dialog to pop up (may be the documentation should be updated? )
Smef Posted November 16, 2010 Posted November 16, 2010 (edited) Whoops! You're right! I was looking at the wrong function's documentation. The parameters are: SCDownload ( folderPath { ; destinationFolder ; width ; height; key1=value1; key2=value2; ... } ) You can get a save dialog to show up by adding the showsavedialog flag, such as SCDownload ( $scpath; ""; ""; ""; "showdsavedialog=True") Edited November 16, 2010 by Guest
sijmons Posted November 18, 2010 Author Posted November 18, 2010 (edited) David, are you sure this works? when I use your syntax, the $URL that is produced still show the temp folder and no dialog pops up file:///var/folders/nO/nOW1BldLGaSdu+02E3JgOU+++TQ/-Tmp-/supercontainer_downloads_psijmons/legContRacts/CTR0044/revision1/Voorraadbeheer_opslagruimte_Guus.xls This is the var setting I use: SCDownload( $folderPath ; "" ; "" ; ""; "ShowSaveDialog=True" ) Edited November 18, 2010 by Guest
sijmons Posted November 18, 2010 Author Posted November 18, 2010 Got it to work, it was case sensitive, when I used showSaveDialog it worked. Note the difference: ShowSaveDialog or showsavedialog will not work.
Recommended Posts
This topic is 5117 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 accountSign in
Already have an account? Sign in here.
Sign In Now