• 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: Luther Fuller <email@hidden>
  • Date: Fri, 02 Jan 2015 14:05:27 -0600

This script avoids your first problem:

tell application "Finder"
set currentDir to (target of front window) as alias
-- display dialog (currentDir as text) & " has " & ((currentDir's items) count) & " items." -- Finder get an error: Expected a reference
-- the line above can't use an alias, so the word "folder" is used to make a reference
display dialog (currentDir as text) & " has " & (count items of folder currentDir) & " items." -- this uses a reference


set itemList to (every item of folder currentDir) as alias list


repeat with f in itemList
display dialog name of f & "< " & (size of f as text)
repeat with p in properties of f
display dialog p as text
end repeat
end repeat
end tell

But ... this script does NOT look into sub-folders.
You will need to write a recursive handler to do that.


 _______________________________________________
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: Alex Hall <email@hidden>
    • Re: Script that "Tells" Finder just Focuses on Finder instead of running
      • From: Luther Fuller <email@hidden>
References: 
 >Script that "Tells" Finder just Focuses on Finder instead of running (From: Alex Hall <email@hidden>)

  • Prev by Date: 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: 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