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

I need to have a text field displaying a folder path and a simple button to open that folder in finder.

My problem is that I don't want to just type the path in the field. I need to be able to select the folder in finder. And then, of course, use the button to open it. I haven't use applescript before and I don't know where to start.

Any help?

See if this file by Fenton helps. Link

Ah, time does fly. Since writing that routine, I've become aware of a much faster way to convert AppleScript lists to return-separated text lists; repeat is kind of slow (with hundreds of files):(

set aFolder to (choose folder)



tell application "Finder"

	set theList to files of aFolder as alias list

	-- set theList to files of entire contents of aFolder as alias list

	set old_delims to AppleScript's text item delimiters

	set AppleScript's text item delimiters to return

	set theFiles to theList as text

	set AppleScript's text item delimiters to old_delims

	return theFiles

end tell

The commented out line, with "entire contents" can be used instead of the line above it, to get all the files recursively inside a folder, and folders within that folder, and on and on.

BTW, as of 10.6 Snow Leopard, it is now recommended to put "choose folder" outside of app tell blocks. Actually any command from the Standard Additions. Though one can safely ignore, for now anyway.

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.