Printing from Applescript

Discussion in 'OS X Mavericks (10.9)' started by mpainesyd, May 14, 2014.

  1. mpainesyd macrumors 6502

    mpainesyd

    Joined:
    Nov 29, 2008
    Location:
    Sydney, Australia
    #1
    For several years I have been using a simple Applescript to monitor the contents of a folder, print new files then delete these files:
    ------
    on adding folder items to this_folder after receiving added_items
    repeat with each_item in added_items
    tell application "AddPrinter" to open each_item
    delay 30

    tell application "Finder" to delete each_item
    tell application "AddPrinter"
    quit
    end tell

    end repeat
    end adding folder items to
    ------
    After the last Mavericks update it has stopped working and gives the error message "the document m3.txt could not be opened. AddPrinter cannot open files in the text format"

    The same happens for PDF files.

    Is there some way to restore the previous AddPrinter functionality?
     
  2. mpainesyd thread starter macrumors 6502

    mpainesyd

    Joined:
    Nov 29, 2008
    Location:
    Sydney, Australia

Share This Page