June 8, 201015 yr So I have this script........ Set Variable [ $filename; Value:GetValue ( Get ( ScriptParameter ); 1 ) ] Set Variable [ $filename; Value:Get ( ScriptParameter ) ] Set Variable [ $pcdesktop; Value:Case ( Left ( Get ( DesktopPath ) ; 2 ) = "/C" ; "filewin:" & Get ( DesktopPath ) & "Style PDFS/" & $filename & "¶" & "filewin:" & Get ( DesktopPath ) & $filename ; Left ( Get ( DesktopPath ) ; 2 ) = "/U" ; Get ( DesktopPath ) & "/" & "Style PDFS/" & $filename & "¶" & Get ( DesktopPath ) & "/" & $filename ; Left ( Get ( DesktopPath ) ; 2 ) = "/M" ; Get ( DesktopPath ) & "Style PDFS/" & $filename & "¶" & Get ( DesktopPath ) & $filename ) ] I am only passing one parameter to this script. What the usage difference between the first 2 lines? As a side note how do I return the parameter $pcdesktop to the calling script? Thanks Michael Edited June 8, 201015 yr by Guest
June 8, 201015 yr If you're not passing a string with a ¶ in it, there is no difference between the first two Set Variable[]. To pass a $ variable from a script to its parent put this at the end of the child script: Exit Script[$pcdesktop] and this in the parent script: Set Variable[$pcdesktop; Get(ScriptResult)].
June 9, 201015 yr Author Thanks DJ Worked like charm. I take it that you can only use one parm with the exit script statement. Michael
June 14, 201015 yr You can pass multiple values in Exit Script[] and parse them out as per your original script.
Create an account or sign in to comment