Results 1 to 2 of 2
  1. #1

    Member Since
    Oct 31, 2011
    Using Files From Folder For Applescript

    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
    Attached Files Attached Files

  2. #2

    Member Since
    Oct 31, 2011
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. AppleScript to extract formatted images from INDD and save to new folder
    By Ingrato in forum Images, Graphic Design, and Digital Photography
    Replies: 0
    Last Post: 06-09-2012, 01:35 PM
  2. Junk Files In System Folder/Library Folder
    By nextiger in forum macOS - Operating System
    Replies: 5
    Last Post: 04-18-2011, 08:29 AM
  3. Give folder access rights to files in folder
    By shabby in forum macOS - Operating System
    Replies: 9
    Last Post: 05-25-2010, 04:59 PM
  4. Applescript at opening of folder
    By ziggo in forum macOS - Apps and Games
    Replies: 0
    Last Post: 04-20-2010, 04:29 AM
  5. Replies: 0
    Last Post: 12-28-2007, 04:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts