November 12, 201015 yr 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 )
November 12, 201015 yr 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.
November 13, 201015 yr Author 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? )
November 16, 201015 yr 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, 201015 yr by Guest
November 18, 201015 yr Author 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, 201015 yr by Guest
November 18, 201015 yr Author Got it to work, it was case sensitive, when I used showSaveDialog it worked. Note the difference: ShowSaveDialog or showsavedialog will not work.
Create an account or sign in to comment