• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Script that "Tells" Finder just Focuses on Finder instead of running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script that "Tells" Finder just Focuses on Finder instead of running


  • Subject: Re: Script that "Tells" Finder just Focuses on Finder instead of running
  • From: Michael Schwarz <email@hidden>
  • Date: Sat, 03 Jan 2015 14:57:19 +0100

> You will need to write a recursive handler to do that.

How about using the 'ls' command with the '-R' option?

I am no expert on unix commands so other options might improve the results.

tell application "Finder" to set the_desktop to (path to desktop folder) as text
	set listFile to the_desktop & "list.txt"
	set posFile to POSIX path of listFile

	tell application "Finder"
		set currentDir to (target of front window) as text
	end tell
	set currentPath to quoted form of (POSIX path of currentDir)

	set cmd to "cd " & currentPath & "
ls -R > " & posFile as text

	do shell script cmd
--	tell application "BBEdit" to open (alias listFile)

mws

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re: Script that "Tells" Finder just Focuses on Finder instead of running
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: Script that "Tells" Finder just Focuses on Finder instead of running
  • Next by Date: Re: Script that "Tells" Finder just Focuses on Finder instead of running
  • Previous by thread: Re: Script that "Tells" Finder just Focuses on Finder instead of running
  • Next by thread: Re: Script that "Tells" Finder just Focuses on Finder instead of running
  • Index(es):
    • Date
    • Thread