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.

Attempting to open a folder based on a field name.

Featured Replies

Hi, I am having a problem with this... I wish to open a folder in MS windows with the "send event" command. The following script shows my attempt to open a folder who's name is a fieldname. No matter what I do, scriptmaker always reads the field name as a text, not at the contents of the fild.

Enter Browse Mode []

Set Field [GLOBALFIELD; "cmd /c explorer c:FIELD_NAME"]

Send Event [aevt";"odoc";GLOBALFIELD]

When I run this script, the command is sent to windows, but it tells me that "The path 'c:GLOBALFIELD' does not exist or is not a directory"

Can anyone see what I am doing wrong and how this can be changed to open the folder that is call what GLOBALFIELD contains?

Thanks so much!

-Steve

Steve,

Make sure you don't have quotes around the field name.

I have scripts that open files and folders from a field name. I simply put the path in the field, and use the Send Event script step.

Do what you are doing without the extra characters.

Set Field [GLOBALFIELD; "c:FIELD_NAME"]

Send Event [aevt";"odoc";GLOBALFIELD]

  • Author

Thanks Guys, I have tried deleting the quotes and scriptmaker prevented me from saving the script becasue it was expecting an end quote. I will try playing around with it some more and I will remove the cmd/ c stuff. thanks again!

-Steve

  • 4 weeks later...
  • Author

Hoping to get help one more time regarding this issue.

I am using a date in the calculations of a script and I cant get it to show the date as "4-23-2005", it always shows it as "4/23/2005", which cannot be part of a windows forder becasue of the slashes. I have gone into the date settings of the date field involved in the calculation, and I have changed it to the "4-23-2005" format, but the script still puts the old format in the field. Any Ideas? Thanks

-Steve

The most reliable way to get the date in the format you want is to explicitly format it like this:

Month(DateField)&"-"&Day(DateField)&"-"&Year(DateField)

If you need to include leading zeros in the month and day, you can use this:

Right("00"&Month(DateField);2)&"-"&Right("00"&Day(DateField);2)&"-"&Year(DateField)

Or:

Substitute ( GetAsText ( Datefield ) ; "/" ; "-" )

  • Author

Did the trick, thanks guys!

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.