Destination folder seems invalid

everything works except the line to move the file, the_dest seems to be invalid
tell application "Finder"
set the_selection to get selection as string
-- "ActiveProjectsA-D-1: TELETHON:ASIA187 Prasith's First Job Thailand:Nuendo Project:Audio:ASIA187 Prasith'S First Job Thailand FULL Mix v2.wav"
set the_selection2 to get selection
-- document file "ASIA187 Prasith'S First Job Thailand FULL Mix v2.wav"
if word 1 of the_selection contains "active" then -- we are on Apace
set AppleScript's text item delimiters to {":"}
set Nuendo_project to text item -3 of the_selection
set the_project to text item -4 of the_selection -- "ASIA187 Prasith's First Job Thailand"
set theexportfolder to text items 1 thru -3 of the_selection & "EXPORTS" as string
set word_one to text item 1 of the_selection
set the_dest to text items 1 thru 3 of the_selection & "EXPORTS" as string
set AppleScript's text item delimiters to {""}
end if
if Nuendo_project contains "Nuendo Project" then
--tell application "Finder" to duplicate (the_selection2) to folder (the_dest)
end if
end tell

What is the specific error message (if any) you get?
As written it won't work because of the line:
if Nuendo_project contains "Nuendo Project" then
but Nuendo_project is not defined anywhere in the script, therefore this test will fail and it will never get to the line that's supposed to copy the file. Maybe you mean:
if the_selection contains "Nuendo Project" then
If that's the case I'd change your logic a little - you're doing a lot of work manipulating the path without knowing whether you need to or not - it would be prudent to perform this check first and then do all the string manipulation and file copy within the if/end if block.

Similar Messages

  • Destination Folder not showing content after Export

    I am running in a problem with 3.2 when I export Canon Raw images from one folder to another. What is happening is that post the completion of the export the destination folder will either show only part of the exported images, or none at all. This applies to the folder file count and what is visible in the destination folder in terms of visible images. IHowever, when I open up Windows Explorer or BreezeBrowser Pro, the content of the folder is correct. Here are the solutions I have tried:
    1) Right-click on the destination folder and attempt to select "Synchronize Folder". However, it is grayed out.
    2) Refresh the database and restart LR. This has not impact. However, "Synchronize Folder" is not availabe and it will show the missing quantity so then and if I pick "Synchronize" it will bring up the Import box and I will then click on import and now the destination folder shows the correct number of images and they are visible after open it.
    3) When all else fails I do a repain install and that seems to correct the problem for a while.
    Despite all these remedies the issue eventually reoccurs.
    I am running Win 7 64 with 8G of ram and plenty of HD space. Anybody seen this behavior and if yes, found any solutions? Thanks in advance for any suggestions or help.

    Rachel
    Sounds like a damaged database file.
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 08* library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.
    Regards
    TD

  • Changing iTunes backup destination folder

    Hi, I am trying to change the backup destination folder from my laptop to an externa drive because I am running out of memory locally. Any advise on doing this is welcome. Thanks.

    Believe me I am not an expert here, but seems like there are 2 processes to look at. One is the transit process (loading thumbnails from card to view on screen, and converting selected files to DNG). The second process is writing those files selected to disk. It would appear to me the process of writing to disk has lots of space, so the transitory process must use virtual memory, temp or a cache file and that has limited capacity.
    Think you could test this by doing the process twice. Once the normal way to see if it has the usual error message, and once by dividing the process up. (Might have do delete the imported data on disk so each run is new.) Rather than selecting 8 gig of data all at once, try it with 2 gig. If it works at that level you can try it at 4 gig and so forth to see what your upper limit is before you start getting error messages. When reached you can either just learn to stay below it or figure out how to increase the limiting resource.
    Interesting question, let us know what you discover. Thanks.

  • How choose destination folder for images edited in external program?

    Using LR 2.3 with the Windows 7 beta. It seems to me there should be a preference or option to set the destination folder for an image sent for editing in Photoshop. The default is the folder where the originals are located, which seems to me to be the worst choice. In any event, I can't find where in LR the user can choose a destination folder for the edited image. Ideally, the user should be able to choose this for each set of images being edited, and the choice would be available in the dialog that appears when the user sends an image out to Photoshop.
    So is there a way to set the destination folder for the image that results from sending an image out for editing in Photoshop or other external application?
    Any help with this would be very much appreciated.

    Thanks very much. I have CS4, but haven't installed it yet. So I have been using the rendering option. Apparently that is part of the problem, because I seem to recall that there was a Save As option shown when LR 2 was compatible with whatever the ACR with CS3 was.
    Saving with originals seems an odd default. I wouldn't think too many photographers mix processed work with originals, and making the destination folder choice always available wouldn't seem to be a particularly difficult piece of engineering.
    Anyway, your answer was very helpful.
    Stan Robins

  • What makes Photoshop ignore my choice of destination folder?

    Hello, experts:
    I have been using Photoshop for basic editing for several years, now. For at least the last three years (whether I have used Photoshop CS5 or now, CS6), if I automate a batch of photos, going through the process of selecting the source folder, then the destination folder for the edited pictures, my choice of destination folder is ignored — the edited pictures end up in the source folder. Recently, they have even gone into a totally irrelevant folder. It was not always like this, but I now don't seem to be able to cure this annoying malfunction.
    Can anyone out there tell me how this may be put right?
    With thanks in anticipation of a helpful reply,
    True to form

    If using an action probably need more info on what action says for file saving.

  • After upgrade to Yosemite, drag and drop for files does not work, destination folder crashes.

    After upgrading to Yosemite, dragging and dropping files from one location to the destination folder, causes the destination folder crash. However, copying the file and then moving it works fine.
    I'm not sure where to report bugs, but I figured this would be the best option

    http://www.apple.com/feedback/  Feedback
    https://bugreport.apple.com/  BugReporter

  • Saving photos to the web by creating events. Called the destination folder does not exist.

    Hello,
    I ask you for advice (assistance). A week ago I re-installed the PC and installed to the computer again Photoshop CS5. Everything works for me except for the function of storing images for web by creating events. Called me constantly destination folder does not exist. The problem I had before. I ask you this advice on how to solve this problem.
    Thanks for the advice

    hi,
    i don't know if i integrate your code correctly, but it doens't work for me. I presently create skin for client and this plugin is really usefull for me.
    i use win7 64bit home edition, and photoshop cs5
    there is how i integrate this :
    // EDIT ALEX GRENIER
    function getPreferencesFolder() {
         var userData = Folder.userData;
         if (!userData || !userData.exists) {
              userData = Folder("~");
         var folder = new Folder(userData + "/xtools");
         if (!folder.exists) {
              folder.create();
         return folder;
    function exportChildren(dupObj, orgObj, dupDocRef, folder) {
    if (getCSVersion() >= 10) // CS3 Only
         // Create assets folder in Flex app's directory
         // var tempFolder;
         // tempFolder = new Folder (folder + "/assets/");
         // tempFolder.create();
         // EDIT ALEX GRENIER
         var tempFolder;
         tempFolder = getPreferencesFolder();
    i put the code creating the folder in comment and put your code in place, i also put your function before the function creating file.
    With the base code (without modification) photoshop is able to create my folder assets, but when it try to export the png, it export nothing, so i have a empty folder.
    thank you,
    Alex

  • I have an IMac.  I put a folder on the desk top and now want to delete it.  The folder seems to be locked.  I went to get info and tried to unlock it but still can't delete it.  The folder has nothing in it.  Any help would be great.  Thanks

    I have an IMac.   I put a folder on the desk top and now want to delete it.  The folder seems to be locked.  I went into Get Info and attemted to unlock the folder and delete it.  Won't go away.   There is nothing in the folder.   How do I unlock this folder and delete it?   When I try to delete it, I'm asked for my password which I put in and is accepted, but will not delete the folder.  Any help would be great.

    If you are sure there is nothing in it, download trashit, a useful free app.   That will dispose of it.
    Download Trash It! for Mac - Force-empty your trash can. MacUpdate.com

  • After installing Mavericks I can no longer save a new word document or pdf by typing the name of the destination folder in the Finder window.  The save button greys out.  Solutions anyone?

    After installing Mavericks I can no longer save a new word document or pdf by typing the name of the destination folder in the Finder window.  The save button greys out.  Solutions anyone?

    Please follow these directions to delete the Mail "sandbox" folders. In OS X 10.9 there are two sandboxes, while in 10.8 there is only one. If you're running a version older than 10.8, this comment isn't applicable.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Containers/com.apple.mail
    Right-click or control-click the highlighted line and select
              Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected folder—not just its contents—to the Desktop. Leave the Finder window open for now.
    Log out and log back in. Launch Mail and test. If the problem is resolved, you may have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window.
    This action will delete any custom Mail stationery that you have created. If you want to preserve it, ask for instructions.
    If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Repeat with this line:
    ~/Library/Containers/com.apple.MailServiceAgent
    Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • Itunes 8.0.1 won't install to the correct destination folder

    After installing Itunes to the hard drive (I've tried this on both my laptop's hard drive as well as an external hard drive), the destination folder points to the CD Rom drive and won't let you change it.
    Help?! I've tried installing three different times, both from the upgrade as well as from the direct website.

    I've done that, and it still won't save to teh correct file. It disregards where I want the file saved, and saves it to the E drive, which is my cd rom drive. Then, of course, it won't save to the CD rom drive, becuase there's no memory there.

  • I have just installed a new hard drive in my imac intel 20" (2006) and now the hard drive does not show up in the 'select destinations' folder of the install program.

    I have just installed a new hard drive in my imac intel 20" (2006) and upgraded the memory and now the hard drive does not show up in the 'select destinations' folder of the install program. I can see the hard drive in the disk utilities window however it wont let me do anything.
    It is a seagate 1TB SATA II drive however it is displaying it as a 7.3 TB.
    If anyone has any suggestions I would be happy to hear them.
    I have tried to erase and partition and get the same error message each time, 'Input/Output error'.
    I have tried starting the thing with the install disk which is Mac OS X (Tiger?) which came with the computer. No good.
    Anyone?

    Thats correct. I can see it in the list however when I attempt to erase it or partition it it's like it's not being found or recognised and it throws up the input/output error message. I am pretty sure that the sensor it attached correctly and it is a SATA drive. I can see all the infor regarding the drive when disk utility is open and it all looks good but I cant access it or do anything with it. It's taunting me!
    The install disk is in the drive and the install program runs right up to the point where you have to select the location for the install and there is just nothing in the box where you have to select the hard drive icon.
    I have my suspiscions about the drive but any help would be appreciated.

  • How to install os x if destination folder is empty?

    Hi all,
    just received my i mac back with a new harddisk installed.
    When trying to install my os x version 1.0.3(116.1) the mac starts running but then when the destination folder pops up, it remains empty...
    Can sbdy advice me what to do, I can also not eject the dvd as it remains in use...
    Thank you1
    F

    You will probably have to reformat your new drive correctly. If you can still see the Utilities folder from the installer screen (I believe it remains visible at that point; if not, try backing out of the screens, or, as a last resort, reboot to the installer and, instead of going through the steps, use the Utilities menu as soon as you see it) run Disk Utility.
    Choose your new drive in the left side, use the Erase tab to reformat as Mac Extended (Journaled). Once you click Apply, and quit DU, you should now see the drive available in the installer.
    Matt

  • How to set file name and destination folder without user interaction

    how can I set the file name and destination folder to generate a pdf file like "c:\myfolder\document.pdf" in this folder automatically.
    Is there a tag in .joboptions ?
    Goal: User click print button. In the background a pdf will be generated in e.g. "C:\myfolder\document.pdf".
    that`s it.
    I know that the query dialog for save as can be turned off. But the file name depends on the application.
    Thanks for your help.
    TK

    Hello,
    Please post this  in  PI forums
    Regards, Anil

  • When I try to download a software up date for another program in Binary File (eg CCleaner or a Microsoft file) in FireFox they all just come up in the download window as 'Cancelled'? When I go to the destination folder the download file icon is there wit

    When I try to download a software up date for another program in Binary File (eg. C Cleaner or a Microsoft file) in Firefox they all just come up in the download window as 'Canceled'? When I go to the destination folder the download file icon is there with 0 Kb's for size...Then when I click 'RETRY' the download it appears to download fully, but when I go into the destination folder the downloaded file is not there? I need to know if there is something in the Firefox options to resolve this problem or much more!!

    If all .exe files are blocked, antivirus software is most likely configured to block them. See if you can download these with your antivirus and/or security software disabled.

  • How do I change the destination folder for Icloud Itunes down loads?

    How do I change the destination folder when I download songs from the Icloud?...I want the songs to go to an external hard drive and not the hard drive on my pc

    You might want to ask that question over in the iTunes for Windows forum.  They should know if it's possible to change the location to and external drive.

Maybe you are looking for