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 Guys,

 

I've been trying to get this one sorted for a couple of years now!

 

Anyway, i more or less got it sorted via a script by Fenton Jones here.

It is:

Perform Applescript:

Let ( [ 
info = GetAsText ( Contain ); 
vc = ValueCount ( info ); 
FM_path = GetValue( info; vc ); 
Mac_path = Substitute ( FM_path; ["imagemac:/"; ""]; ["filemac:/";   
""]; ["/"; ":"] ) 
]; 

"tell application "Finder"¶" & 
"activate¶" & 
"reveal "" & Mac_Path & ""¶" & 
"end tell" 

 

 

So, it works fine apart from when the file's name has a space in it, ie "blah.txt" works but "blah blah.txt" doesn't.

 

Does anyone have any suggestions as to how i can get this to work, or alternatively what would make it open just the containing folder (which i guess would get around the file name problem)?

 

Many thanks for any help :)

  • Author

 

So, it works fine apart from when the file's name has a space in it, ie "blah.txt" works but "blah blah.txt" doesn't.

 

Actually, this is not the case, as i've found a file with a space in it, that does work.

The error when it doesn't work is 

Finder got an error: Can’t make "***:Users:***:Documents:Admin:***:*** ***.pages" into type item.

 

And it's the Users:***: part that messes things up - when i relink the file, this part isn't included anymore, and the script then works!

 

So ... now do i do all 400 of these files by hand, hmm!

  • Author

Hi Comment,

 

Many thanks for that - i had been trying earlier this morning with your file, to get the open folder button to work, but it doesn't work on my system for some reason, which was partly why i've gone this route because i couldn't figure out why!

So ... now do i do all 400 of these files by hand, hmm!

 

To get it to work automatically, i added a part to the substitution line of the script ["Users:***:"; ""] which took out the problem text, and made it work!

Yay!!

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.