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

Having a strange problem. This applescript step is only working on SOME computers in our office and not all. The error we get is the path can not be found.
 
On the computers where it does not work, if I enter the full path instead of using 'set x to cell' it DOES work...so the path does exist.
 
So far I have ruled out different versions of FM, FM user/permissions issue, different operating systems or connection type to server.
 
I have done this many scripts and can not figure out why this one is not working. Any help would be much appreciated.
 
set x to cell "mediaprojects_path" of current record
set y to cell "deliveryPackageName" of current record
do shell script "mkdir /Volumes/networkFootage/Digital_Deliverables_Packages/" & x & "/_Delivery_Packages/" & y

Have you checked the values of x & y on these computers? Perhaps they need shell escaping because they contain spaces, are empty or contain one of

/ : "

 

Does the containing folder for the resulting path exist?

 

There are many ways how this script can fail.

  • Author

Yes the path does exist. I am using the same path on a server from all different computers. All computers see it when I enter the values directly without the  variables.

 

I am curious about the : that you mentioned. That did appear on the error message... /Volumes/mypath/: does not exist. I assumed the colon just inserting itself into the error message...am I wrong about that?

  • Author

Double checked...there are no colons in the path. Just to be clear this is not a problem in just one script. This is happening in many scripts. I can copy the path out of a FM field, put into a Terminal window and it works fine. This is definitely an FM issue, but I don't know what to adjust since everything seems to be correct. 

FileMaker refuses for example to import pictures if any of the path elements contains a ':' which will be shown in the Finder as '/'.

 

For unix a '/' is an illegal char in  a file or foldername .

 

For the old MacOS ':' had the same meaning as '/' has for unix.

 

The Finder exchanges the two because people like to name folders with a '/' in it.

 

 

Have you checked shell escaping?

 

?,:,*,",' have special meaning in a shell.

 

Perhaps that last line should be:

 

 

do shell script "mkdir '/Volumes/networkFootage/Digital_Deliverables_Packages/" & x & "/_Delivery_Packages/" & y &"'"
 
If all that fails, go to 360works.com, download the free version of the ScriptMaster Plug-in, get acquainted with it and use it to create new folders. It would at least remove 2 redirections; the shell and applescript.
 
-karsten
  • Author

Thanks Karsten I will look at the plugin. This still perplexes me as to why this script stopped working. It had been working for about 6 months and then just stopped. Nothing on our systems has really changed in that time frame either.

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.