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

Hi All,

I can never seem to get my head around file paths and even more so when we need to use variables. Can any of you help me with the following please?

What I have is an inventory system that has been adapted from the starter solutions, I have created a new field called colour.

I have a folder system set up with lots of different colour folders i.e. black, blue, yellow etc...

I would like to add a button that performs a script that goes to the correct colour folder so that I can select the correct part. The folder path containing these colours would be "/Users/USERNAME/Documents/FOLDER/FOLDER/FOLDER/FOLDER/HERE ARE THE COLOUR FOLDERS" if that makes sense....

I know this involves a variable using the colour field but cannot get my head around it.

(I am aiming to then further this later on by being able to go straight to the part code within that folder without having to manually select one. I think I will be able to complete this once I have got used to doing the first part)

Thank you to everyone who can help.

16 minutes ago, Nathan Wilcox said:

a script that goes to the correct colour folder so that I can select the correct part

Please explain what you mean by "select the correct part". Select for what purpose?

 

16 minutes ago, Nathan Wilcox said:

to go straight to the part code within that folder

This too requires the same explanation.

--
P.S. Please update you profile to reflect your version and OS.

 

See also: http://fmforums.com/topic/79551-open-calculated-file-directory/?do=findComment&comment=370547

 

 

 

Edited by comment

  • Author
21 minutes ago, comment said:

Please explain what you mean by "select the correct part". Select for what purpose?

Apologies, the "correct part" would be the part associated with "Part Number" field

Screen Shot 2016-10-07 at 10.57.34.png

You still haven't answered my question: select for what purpose?

it looks like each "part" in your solution has an external file in a known folder, with a known filename. Why don't you simply add a calculation field with the result type being a container, and calculate the path to the relevant file? Then you will be able to open the external file by double-clicking the container field.

Alternatively, you could use the OpenURL[] script step to open the external file directly (again, using the path calculated from the path to the folder and the filename). Or use AppleScript to do the same.

 

Edited by comment

  • Author

That's great! Thank you very much

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.