mfl Posted June 8, 2010 Share Posted June 8, 2010 (edited) 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, 2010 by Guest Link to comment Share on other sites More sharing options...
David Jondreau Posted June 8, 2010 Share Posted June 8, 2010 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)]. Link to comment Share on other sites More sharing options...
mfl Posted June 9, 2010 Author Share Posted June 9, 2010 Thanks DJ Worked like charm. I take it that you can only use one parm with the exit script statement. Michael Link to comment Share on other sites More sharing options...
David Jondreau Posted June 14, 2010 Share Posted June 14, 2010 You can pass multiple values in Exit Script[] and parse them out as per your original script. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 5088 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