| OS X - Operating System General OS operation information and support |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Oct 31, 2011
Posts: 2
![]() |
Hey,
I've created an applescript that runs an application if certain criteria are met on files when added to folder. if these criteria aren't met then it checks to see if the file is a folder itself and then runs the same criteria on that folder as well. currently it works for the initial folder but does nothing on the following folder - this is mainly because i don't know how to properly reference the files in the 'new' folder. Here is my script in .txt format - hopefully it is self explanatory. the application i'm trying to launch is flicks and the file types are avi and mkv |
| QUOTE Thanks | |
![]() Member Since: Oct 31, 2011
Posts: 2
![]() |
I had another idea:
as the script works well for files in the parent folder can i do a simple script swell as that one to extract files from subfolders (when added) and move to parent folder thus the second script will be innacted and hey presto it does the same thing. my thought was: on adding folder items to thisFolder after receiving addedItems repeat with addedItem in addedItems tell application "Finder" if addedItem is "folder" then set thedata to entire contents of folder "addedItem" repeat with aItem in thedata if class of aItem is not folder then move aItem to folder thisFolder end if end repeat end if end tell end repeat end adding folder items to |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Can't view files in shared folder | JollyPaperBag | OS X - Operating System | 0 | 03-08-2011 02:51 AM |
| MacBook and External NAS - Folder Cycles Through Files | spolebitski | OS X - Operating System | 0 | 02-08-2009 12:59 PM |
All times are GMT -4. The time now is 06:35 PM.
Powered by vBulletin