Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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 by Guest

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)].

  • Author

Thanks DJ

Worked like charm.

I take it that you can only use one parm with the exit script statement.

Michael

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

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.