Script no longer working under Maverick

I just upgraded to Maverick over the weekend and I can not figure out why this script no longer works.  It has been working for the last 5 years.
The script moves a file my server sends per e-mail to a folder on a partition on my Mac.  Here is the script.
tell application "Microsoft Outlook"
          set selectedMsg to (current messages)
          set selectedMsg to item 1 of result
          set msgAttachment to attachments of selectedMsg
          set msgAttachment to result's item 1
          set attachmentName to name of msgAttachment
          set attachmentFile to ((path to desktop) & attachmentName) as text
  save msgAttachment in attachmentFile
end tell
delay 3
set submitfolder to "OS E:Users:e:Desktop:" as alias
set collectionfolder to "/Volumes/Data E/Consulting/Telephone Switch Record/2014" as alias
tell application "Finder" to move (every file whose name contains ("week ") & (do shell script "date +%U")) to collectionfolder
delay 2
tell application "Finder" to move (every file whose name contains ("week ") & (do shell script "date +%U")) to trash
I now get:
If I run:
tell application "Finder"
          open ("/Volumes/Data E/Consulting/Telephone Switch Record/2014" as POSIX file)
end tell
it opens the folder no problem so the path must be ok?  or? 
Any ideas why it is broken? 

Are you getting the error on this statement
set collectionfolder to "/Volumes/Data E/Consulting/Telephone Switch Record/2014" as alias
or when you do the move? And what is the error number you are getting?
Also try this
set filePart to "week " & (do shell script "date +%U")
log filePart
tell application "Finder" to move (every file whose name contains filePart) to collectionfolder
to see what the string looks like.

Similar Messages

  • Dropbox automator script no longer working with Mavericks

    Hi,
    I use two versions of the following shell script (found on the net), launched by automator, to set up two Dropbox accounts :
    Since upgrading to Mavericks, the script hangs when execution is requested. If the execution is then stopped and then requested a second time, the script terminates normally. Anyone have any idea why this might be (I am no expert of either shell scripts or automator) ?

    ok then do this. Once you have your first Dropbox account set up try the following steps:
    1. Create a folder named "Dropbox-second" anywhere you like.
    2. Open terminal, write "bash" and press enter.
    3. paste the line below and press enter. (Dont close the terminal window)
    HOME=$HOME/Dropbox-second /Applications/Dropbox.app/Contents/MacOS/Dropbox &
    4. A second dropbox instance will open requiring you to sign in. Go ahead sign-in and then click advanced and point to the "Dropbox-second" folder you created.
    5. Close the terminal window and close the second instance of the dropbox from the topbar. (Click on the icon -> Click on the gear -> Quit Dropbox)
    6. Now open AppleScript Editor and paste the following
    do shell script "HOME=$HOME/Dropbox-second /Applications/Dropbox.app/Contents/MacOS/Dropbox > /dev/null 2>&1 &"
    7. Click run and you will see the second icon of Dropbox in the topbar appear again.
    8. Click stop and then from file save this as an application anywhere you like. Give a name like "DBMore" or anything you like.
    9.Now to make sure everytime you login to your account the second dropbox starts, go to system preferences->users & groups-> select the current user-> click login items on the right->click the + sign to add "DBMore" application you created.
    That's it you're done.
    10. If you want to be able to differentiate between the two dropbox accounts click on the second dropbox icon in the topbar -> click the gear -> click preferences -> general -> use black and white menu bar icons.
    Enjoy! Hope this really helps

  • Dashboard dictionary no longer works under Mavericks

    My dashboard dictionary suddenly stopped working. I type in a word and hit enter and nothing happens…

    Yes, I also tried Repair Permissions in the Disk Utility. Still, it doesn't work

  • "Older" apps no longer work under 10.7

    Filemaker pro 7, Toast and Photoshop CS3 no longer work under 10.7. Is there any way to make these work or will I have to go back to OS 10.6?

    Time for an update.
    I'd scrap Toast.  And CS 5.5 and FileMaker Pro 11 are way better than the older versions you have, and will run substantially faster as native applicaitons.
    Though I thought CS3 was actually a Universal application and thus _should_ run on Lion (albeit not supported any more)

  • XITEL HiFi-Link AN1 No Longer Working Under 10.4.6

    My XITEL HiFi-Link is no longer working under 10.4.6.
    This USB sound device is selected as my output device.
    I have tried both USB ports - no sound.
    Both USB ports function properly with other input devices.
    Any Ideas?

    Kernel 3.13.7 contains the patch to fix this bug, from here on the mailing list: https://lkml.org/lkml/2014/3/20/819
    So now I don't have to hold back my kernel anymore, and this issue is resolved. Woopee!
    Last edited by zanny (2014-03-27 02:03:59)

  • Scripts no longer working via Bridge

    For some reason, scripts no longer works in Bridge CS4.
    I've previously installed "Dr. Brown's services" scripts which is available in the "Tools" menu of Bridge. However, when I select some files, then choose this script Photoshop starts up, but nothing more happens.
    The same goes for the "Tools"-"Photoshop" menu (Batch, Image processor etc.). Photoshop CS4 starts up but nothing else happens.
    However, if I do the same thing in Photoshop itself ("File"-"Scripts") it works fine, so the scripts themselves are working, or so it seems.

    If for some reason Bridge suddenly behaviors other then before the first
    thing to try is a restart for Bridge holding down option key to refresh the
    preferences. Set Prefs again to your wishes and try again.
    For some reason, scripts no longer works in Bridge CS4.

  • HT6114 My CanoScan 8600F no longer works with Mavericks- No drivers available from Canon

    My CanoScan 8600F no longer works with Mavericks upgrade.  Canon does not offer new drivers.

    The Canoscan Toolbox works with Mavericks to scan, copy, etc.
    If you have Photoshop or Photoshop Elements the drivers can be installed so one can scan from within those applications.
    All the necessary software (CanoScan Toolbox 5.0.1.2 Installer) can be obtained from the Canon site.
    And, as Eustace mentioned, Vuescan works.
    OT

  • After upgrade Script No Longer Works

    After I upgraded CS4 to .605 my script no longer works. I get:
    Error Number:45
    Error String: Object is Invalid
    Line 12
    Source: myParStyle.baselineshift = -1;
    Here are my first 12 lines:
    var doc = app.documents[0]
    var color = doc.colors.item("C=100 M=65 Y=0 K=0");
    var inlines = doc.stories.everyItem().textFrames.everyItem().getElements();
    for(var i=0;i<inlines.length;i++){
        if (inlines[i] instanceof Group){continue}
        if(inlines[i].fillColor != color){continue}
        if(inlines[i].contents == ""){continue}
        inlines[i].convertShape(ConvertShapeOptions.CONVERT_TO_RECTANGLE);
        myChangeCorners(inlines[i], 0, .3, "fourth point");
    var myParStyle = doc.paragraphStyles.item("Tab_HeadB_KO");
    myParStyle.baselineShift = -1;
    What do I need to change to get this to work again?
    Thanks,
    Rob

    So it's still somewhat a mystery, because that particular command didn't change from CS4 to CS5.
    Can you try the 'fix' mentioned here? CS5 issues

  • Simple script no longer works in PS3

    The following script no longer works in Photoshop 3. I now get the error message "Adobe Photoshop CS3 got an error. Can't make some data into the expected type."
    What does this mean and how can I fix it??
    Thanks.
    Peter
    set inputFolder to choose folder
    tell application "Finder"
    set filesList to (every file of inputFolder whose name ends with ".jpg")
    set outputFolder to folder (choose folder with prompt "Which folder do you want to save the new photo in?")
    end tell
    tell application "Adobe Photoshop CS3"
    set display dialogs to never
    close every document saving no
    end tell
    repeat with aFile in filesList
    set fileIndex to 0
    tell application "Finder"
    set theFile to aFile as alias
    set thefileName to name of theFile
    end tell
    tell application "Adobe Photoshop CS3"
    open theFile
    set fileName to "FCP" & name of current document
    set docRef to the current document
    set docName to name of docRef
    set docBaseName to (docName) of me
    set docRef to the current document
    set bits per channel of docRef to eight
    set docHeight to height of docRef
    set docWidth to width of docRef
    -- Convert the document to a document mode that supports saving as jpeg
    if (mode of docRef is not RGB) then
    change mode docRef to RGB
    end if
    do action "Resize JPGs" from "FCP.atn"
    set docHeight2 to height of current document
    select all of current document
    set docHeight2 to height of current document
    set docWidth2 to width of current document
    set infoRef to get info of docRef
    select all of current document
    activate "Adobe Photoshop CS3"
    copy
    close docRef saving no
    make new document with properties {width:docWidth2, height:docHeight2, resolution:300}
    paste
    set docRef to current document
    set fileIndex to fileIndex + 1
    set newFileName to (outputFolder as string) & "FCP" & docBaseName
    set myOptions to {class:JPEG save options}
    save docRef in file newFileName as JPEG with options myOptions appending lowercase extension with copying
    close current document without saving
    end tell
    end repeat

    What I'm trying to do is change the resolution of a jpg file to 300 dpi and then change the the jpg pixel dimensions to a width of 1000 pixels--constraining the proportions and letting the height dimension fall wherever. That's what the "Resize JPG's" action does. I then want to save the jpg to a new file called 'FCPoriginalfilename'.
    The script gets hung up on "save docRef in file newFileName as JPEG with options myOptions appending lowercase extension with copying". I get the error message that "Photoshop CS3 can't make some data into the expected type"
    I modified the script from a previous script that I wrote to convert raw files to TIFs which I have attached--it works fine.
    Thanks.
    Peter
    --set tempFolderName
    set inputFolder to choose folder
    tell application "Finder"
    set filesList to (every file of inputFolder whose name ends with ".CR2")
    (*if (not (exists folder ((inputFolder as string) & tempFolderName))) then
    set outputFolder to make new folder at inputFolder with properties {name:tempFolderName}
    else*)
    set outputFolder to folder (choose folder with prompt "Which folder do you want to save the new photo in?")
    --((inputFolder as string) & tempFolderName)
    --end if
    end tell
    tell application "Adobe Photoshop CS3"
    set display dialogs to never
    close every document saving no
    end tell
    repeat with aFile in filesList
    set fileIndex to 0
    tell application "Finder"
    -- The step below is important because the 'aFile' reference as returned by
    -- Finder associates the file with Finder and not Photoshop. By converting
    -- the reference below 'as alias', the reference used by 'open' will be
    -- correctly handled by Photoshop rather than Finder.
    set theFile to aFile as alias
    set thefileName to name of theFile
    end tell
    tell application "Adobe Photoshop CS3"
    --set myOptions2 to {class:raw format open options, bits per channel:16, byte order:Mac OS}
    open theFile as Camera RAW with options ¬
    {class:Camera RAW open options, bits per channel:sixteen}
    set docRef to the current document
    set docHeight to height of docRef
    set docWidth to width of docRef
    -- Convert the document to a document mode that supports saving as jpeg
    if (mode of docRef is not RGB) then
    change mode docRef to RGB
    end if
    (*if (bits per channel of docRef is sixteen) then
    set bits per channel of docRef to eight
    end if*)
    -- The copy is simply saved with additional document info added
    set infoRef to get info of docRef
    --set copyright notice of infoRef to "copyright 2004 trofanna"
    set docName to name of docRef
    set docBaseName to (docName) of me
    set fileIndex to fileIndex + 1
    set newFileName to (outputFolder as string) & docBaseName
    set newPhotoName to newFileName & ".tif"
    set myOptions to {class:TIFF save options, byte order:Mac OS}
    save docRef in file newFileName as TIFF with options myOptions appending lowercase extension with copying
    -- The original document is closed without saving so it remains as it was
    -- when opened for batch processing
    close current document without saving
    end tell
    end repeat

  • Hello Folks!  - Have a Samsung ML 2165w which will no longer works since Mavericks, tried reinstalling and the 'Continue' button at the SLA is greyed out.  Any ideas?  Cheers 'n thanks for any feedback.

    Hello Folks!  - Have a Samsung ML 2165w which will no longer works since Mavericks, tried reinstalling the software and the 'Continue' button at the SLA page is greyed out.  Any ideas? 
    Cheers 'n thanks for any feedback.

    Went around the long way and reinstalled Mavericks since the Mac was acting a little flakey occasionally of late, and now the  printer as once again been installed and works ok by wire. Have not yet had time to try to connect wirelessy yet, so...
    Cheers!

  • S&R script no longer works (in ID 6.0) as it did in previous versions

    This S&R script no longer works (in ID 6.0) as it did in previous versions. Can you help me by correcting it?
    app.findTextPreferences = app.changeTextPreferences = null;
    app.findChangeTextOptions.properties = { 
    includeLockedStoriesForFind:false, 
    includeLockedLayersForFind:false, 
    includeHiddenLayers:false, 
    includeMasterPages:false, 
    includeFootnotes:false, 
    wholeWord:false, 
    caseSensitive:false };
    app.findTextPreferences.findWhat = "Jack & the Beanstalk";
    app.changeTextPreferences.changeTo = "Mary Poppins";
    app.changeText();

    Hi,
    1. What error is detected?
    2. This code does the same thing you could do in UI dialog "Find...Change". Is this working?
    Jarek

  • Presonus FP-10 no longer works after Mavericks update

    I updated my Mac Mini to Mavericks and now my Presonus FP-10 will not work. I know that Presonus has made a statement that FP-10 is no longer compatible with Maverick or Mountain Lion. I had it up and running in Mountain Lion. My question is can I reinstall Lion or Mountain Lion to fix this urgent problem. I am using my Mac Mini O SX 10.9 as of now.

    I have now managed to get the Canon LBP6300dn printer working on my network (i.e. I did not use USB at all).
    In case it helps others, here are the steps I performed.
    Infrastructure:
    My printer is connected by LAN cable to my Airport Extreme.
    The Airport Extreme has a DHCP reservation defined for the printer (e.g. fixed address of 10.1.2.3).
    I need A4 as the default paper size, so I installed the UK version of the driver (Mac_CAPT_V365_uk_EN.dmg). I do not know if the locale makes any difference.
    I orginally set-up the printer  when I used Mountain Lion.
    My Mavericks installation on my laptop was clean (i.e. the hard disk was reformatted first)
    Set-up:
    The printer was switched on and installation was done on my Mavericks laptop over WiFi.
    Double-click the .DMG file and follow the instructions.
    Open System Preferences | Printers & Scanners.
    Click + to add a new printer, the Add dialog should open.
    For me, nothing appeared under the Default tab.
    Click the IP tab.
    In the Address: field: I entered the fixed IP address of my printer (e.g. 10.1.2.3).
    The IP address should be automatically validated.
    The Protocol: Field was set to Line Printer Daemon - LPD.
    After a few seconds, the Use: field should display “Generic PostScript Printer”
    Click on the Use: field’s menu to display available options and then pick “Select Software …”
    In the Printer Software dialog, select “Canon LBP6300 CAPT (UK)” . Or the equivalent for your locale. Click Ok. Note: I could not get the “Canon LBP6300n CAPT (UK)” to work.
    For me, an error “Unable to verify the printer on your network appeared”, but I clicked Continue.
    I left the Paper Source Options set to none. (I do not have the 500 cassette.)
    I clicked Ok to finish the adding of the printer
    After this the printer was finally working for me, including duplex printing.
    Anyway, I hope this might help others that are struggling with Mavericks and the Canon LBP6300dn printer.

  • Which Apple app's will no longer work in Mavericks?

    I am using OS 10.8.5 on my MacbookAir.  I was contacted by Apple to download a free update to Mavericks, OS 10.9.
    I am very suspicious after having been many times forced to buy new apps working under newer Apple operating systems, because some previouly working apps suddenly no longer did after an Apple System upgrade was installed.
    I lost mountains of important files created with Applesworks, including important spread sheets and data files which suddenly no longer opened because the Apple appllication used to create them was no longer supported by the newer Apple OS.
    I also recall the total mess with earlier iMovie and iDVD updates most of which ensured that previous iMovie and IDVD schemes coukd no longer be opened or used.
    Since Apple does not inform users of such problems before the updates are  downloaded, maybe it will be of great benefit to  get
    a reply from other users who have upgraded already to Mavericks.
    So which apps, if any will no longer work, if the OS is upgraded to Mavericks?  

    You were contacted by Apple to download Mavericks? Really?
    We wouldn't be able to give you a blow by blow description of which apps will or will not work with Mavericks. There are a lot of people who have upgraded to Mavericks and are not having any issues whatsoever.
    There are others who seem to be having every possible issue you can think of.
    I would imagine that the difference in experiences here is due to the types of sofware people are running, the amount of CPU capacitity they are using to run various apps, games, etc. Whether or not they are running non-Apple applications, how often they have dropped their laptop, etc.
    Since you seem concerned with messes, and problems, and losses of files, then unless you have some burning need to upgrade right at this very moment in it, it seem like it might be prudent to wait.
    That's what I am doing. I am perfectly happy with Mountain Lion. There is nothing in Mavericks that I feel I can't live without for awhile. Eventually, I will be upgrading to Mavericks, because I don't want to fall behind in OSX levels for my machine. But for now, there is simply no pressing need to do so.
    Bugs are being worked out. Fine tuning is being done. Enhancements are being made.
    So, why rush into somehting that has been out for only two months....what's the hurry? It's not going anywhere anytime soon....
    GB

  • Script no longer works in mail since upgrade to 10.5

    I used the script below to generate mail messages. Under 10.4 it would just send the message, now under 10.5 it puts it in the Out Box and that is it.
    Anybody knows how to fix this so it sends it immediately?
    Secondly I used to be able to set sender to any of my accounts for example "[email protected]" or any address I liked, this too is no longer working as it uses always the account from Mail it is send from.
    Anybody knows why or how to fix this?
    set theBody to "abc"
    set theSubject to "XYZ"
    set theTarget to "[email protected]"
    tell application "Mail"
    set newMessage to make new outgoing message with
    roperties {subject:theSubject, content:theBody}
    tell newMessage
    make new to recipient at end of to recipients with properties {address:theTarget}
    set sender to "[email protected]"
    end tell
    send newMessage
    end tell
    thanks

    Sorry forgot to add:
    I have found and tried the advice in article:   http://support.apple.com/kb/TS1967
    However I have no files in the format iTunes Library YYYY-MM-DD that the artical relies on for its solution.
    (Yes hidden and system files are set as shown in Windows Explorer)

  • Script no longer works in mail V3 since upgrading from 10.4 to 10.5

    I used the script below to generate mail messages. Under 10.4 it would just send the message, now under 10.5 it puts it in the Out Box and that is it.
    Anybody knows how to fix this so it sends it immediately?
    Secondly I used to be able to set sender to any of my accounts for example "[email protected]" or any address I liked, this too is no longer working as it uses always the main account from Mail it is send from.
    Anybody knows why or how to fix this?
    set theBody to "abc"
    set theSubject to "XYZ"
    set theTarget to "[email protected]"
    tell application "Mail"
    set newMessage to make new outgoing message with
    roperties {subject:theSubject, content:theBody}
    tell newMessage
    make new to recipient at end of to recipients with properties {address:theTarget}
    set sender to "[email protected]"
    end tell
    send newMessage
    end tell
    thanks

    I don't know if this is still an issue for you guys, but I've been experiencing a problem with the MouseWheelListener added to a Component that is added to an Applet. This is browser independent, but appletviewer/browser dependent.
    Check this link for some test cases:
    http://www.darkdom.com/prototype/coordinate/test/test.html
    I thought it had something to do with the event getting "consumed" by other listeners, but it seems like it only has to do with the MouseWheelListener.

Maybe you are looking for

  • My lock button is jammed and I can't restore my iPhone

    I Need help

  • SIS - sales employee

    Hi experts, How to activate the report named "MCTI - sales employee"? Pls advise. Thx. Moreover, partner determination for sales doc has been maintained. Customer & material have been maintained well as other standard analyses can be run, such as MCT

  • Cant see whole webpage HELP PLEASE

    Hi there, im new to using my macbook. So far its been great but i have a problem with Safari. Some times when i load a website the whole page will not be shown, the bottom will be cut off and i cant seem to scroll down. My browser is as large as i ca

  • Failed to create the volume shadow copy inside of virtual machine 'SBS-SVR'

    Hi there, Currently only partial backups are being completed. I receive the following error: Writer Failures Writer Id: {66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE} Instance Id: {B8818795-2E27-44A3-85AB-D4C3DDBD288E} Writer Name: Microsoft Hyper-V VSS Writ

  • Can I tweak a Firefox.app to launch with a specific profile?

    I have read http://spf13.com/post/managing-multiple-firefox-profiles-in-os-x/ and https://developer.mozilla.org/en-US/docs/Mozilla/Multiple_Firefox_Profiles#Using_the_profiles, but neither answers my question: I'm on MacOSX, and I have two Firefoxes