• 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
Get the "last" folder...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Get the "last" folder...


  • Subject: Get the "last" folder...
  • From: Stefan Eriksson <email@hidden>
  • Date: Thu, 15 Sep 2005 19:48:42 +0200

Hello !

I have a problem that really is killing me... i´m trying to

what i want is a script that scans thro everything from a topfolder and down the hierarcy and only reports the folders that contains files, not folders...

This is so far i got.. not really even close... doesn´t even do recursive...

Anyone got a clue how to approach this problem ?

/ S

set theFolder to "PB G4 Ster:Users:stefan:Desktop:test:"

tell application "Finder"
    activate
    set filelist to (list folder theFolder without invisibles)
    repeat with i from 1 to (count items in filelist)

        

        set theFile_infolder to item i of filelist
        set fullpath to (theFolder & theFile_infolder)
        display dialog fullpath

        

    end repeat

    

end tell
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Get the "last" folder...
      • From: Andrew Oliver <email@hidden>
  • Prev by Date: Re: How to deal with Asynchronous Finder operations
  • Next by Date: Re: "Numeric overflow"?
  • Previous by thread: Re: Folder Actions (System Events) failure
  • Next by thread: Re: Get the "last" folder...
  • Index(es):
    • Date
    • Thread