How to add folder/project name to a File Naming preset

Here's a tip to automatically add the name of the Project or its parent Folder to the filename during Import or Batch Change.
I always used a custom field for adding my client's name to the filename upon Import or Batch Changing versions or masters. But often I would forget to change the custom name, and since it's auto-populated with the previous entry, I'd end up with a bunch of files with the wrong client's name on them. That looks kind of bad. So once I saw with Aperture 3 you can add the Project name or Folder name when relocating referenced files to the new folder structure, I was excited to be able to do the same for the filenames at import. Well, no such luck. They're not an option when you create a custom File Naming preset.
However, I recently decided to poke around inside some plist files, and found a workaround. I discovered the format string for Folder Name is %F and Project Name is %P. The trick is getting the code into the Format Field where you create the preset.
Create a new File Naming preset by choosing "edit" from the Version Name menu during Import or Batch Change. Drag everything you want in the name into the Format field, and enter %F or %P where you want the Folder or Project name. The tricky part is that you can't insert it between two existing criteria. It only works at the very end. After you have it in place, you can drag the criteria around to get it in the order you want.
The alternative method is to insert the code directly into the plist. PLEASE, always make sure you're working with a copy and have a good backup when you're poking around in such things. If you have trouble getting the code to take from within Aperture, you can try this. Same as above, create a new preset, but this time, enter an F or P where you want the Folder or Project name. Give it a unique preset name and save it. Then Quit Aperture. Navigate to ~/Library/Application Support/Aperture/FileNamingPresets.plist, and make a copy of the file, then open with Property List Editor. Dropdown the plist and then dropdown the item you want to edit. You should recognize it by the preset name. Now the easy part. Click in the FormatString field and insert the % character before the F or P you entered in the Format field. Save and you're done.
I discovered later that while the Folder and Project name works just fine during import, for some reason only the Project name works during Batch Change. The Folder name simply creates a "-" in the filename.
In case this is seen as a hack and gets deleted, I'm also submitting it to http://www.macosxhints.com/ and I suspect if anyone from MacCreate sees it, they'll steal it too, as they're known to do.

I do not think there is an out of the box way to do this.
The immediate solution that comes to mind is using a workflow, that runs everytime  a document is uploaded/item created, which may be too much for your scenario.
Cheers,
Prasanna Adavi, Project MVP
Blog:
  Podcast:
   Twitter:   
LinkedIn:
  

Similar Messages

  • How to add MacBook Pro name in iphone5 iCloud as a family sharing device.

    How to add MacBook Pro name in iphone5 iCloud as a family sharing device.
    i have added my family members in my iPhone 5 with newly updated iOS 8 os, but when i am doing same procedure to add my macbook pro it's giving an error message that cannot send an invitation to your own account.
    Kindly help me how to add matchbook pro in iphone5.
    Thanks

    Hello Appu Iyer,
    Thanks for using Apple Support Communities.
    Family Sharing is not dictated by the device, but the Apple ID associated with the device.  Please take a look at the following support article to learn more about Family Sharing.
    Family Sharing
    Take care,
    Alex H.

  • How to Add the title name for Graph in Excel

    Dear Friends
                      I am using LabVIEW 8.0.I need how to add the title name for chart in Excel.
    Jayavel
    Solved!
    Go to Solution.

    Do you have the Report Generation Toolkit? If so, the Excel Easy Graph VI has an input for that.
    If you don't have the toolkit then you will need to use ActiveX. Please do a search on how to use ActiveX (there are examples that ship with LabVIEW) to control Excel. There are also lots of example in the Excel thread. NOTE: DO NOT POST QUESTIONS IN THAT THREAD. 
    Ultimately you will need to look up the information in MSDN. 

  • How to get folder(directory path only not file path) from local file system

    Hi Firends,
    How to get folder(directory path only not file path) from local file system , whenevr i will click on browse button.
    Please give reply for this one , if anybody knows.
    Thanks,
    Anderson.

    Hi Anderson,
    if you're using flash.filesystem.FileReference - then it is run in black box - except of filename, size and creation data (and few other properties available after some operation succeeded). This is part of security features in Flash runtime (described in header section):
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference .html
    This for example implies that user can download a content to local machine - but that content cannot be loaded back into Flash runtime. For this you would need either Air runtime flash.filesystem.File:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.h tml
    (so you would created Air runtime based application: desktop or mobile but not web, even as standalone project) or you would need one of 3rd party tools that add file access/file information features to standard Flash runtime applications converted to standalone native applications.
    hth,
    kind regards,
    Peter

  • How can I know the name of the file that the user has currently open ?

    Hello
    I'm developing a module for x3dv.
    http://hiperia3d.blogspot.com/search/label/X3DV%20Module%20For%20Netbeans
    I am going to add a button to open the files when I click it.
    I just need to know how can I know the name of the file that the user has currently open in the editor. What variable holds it in Netbeans?
    Thank you
    Jordi

    If you are using the JFileChooser to open the document, I would create another class with this included:
    //initiate class variables
    private File f;
    //create JFileChooser
    JFileChooser fc = new JFileChooser();
    fc.setMultiSelectionEnabled(false);
    fc.setFileSelectionMode(JFileChooser.FILES_ONLY)
    //set the chooser to initialise File f with the file selected
    int status = fc.showOpenDialog(null);
    if (status == JFileChooser.APPROVE_OPTION)
         f = fc.getSelectedFile();
    public File getFile()
         return f;
    }

  • How to add new fields to the DME file in F110

    Hi,
    We have a requirement add new fields to the file that is used in  F110.
    .I did go in to DMEE transaction but I hae no idea how to add new fileds to the existing file.
    Can anybody please help me in resolving the issue.
    Thanks
    Venkat
    Edited by: Venkat R on Jun 8, 2009 8:45 AM

    Hi,
    There is no function module for that, We have created our own function module and attached to that field.
    Refer the below code. This will fetch the document number.
    DATA: lwa_item   TYPE dmee_paym_if_type,
            l_fpayp   TYPE fpayp,
            l_fpayhx TYPE fpayhx,
            first_flag TYPE c,
            lv_lifnr   TYPE lifnr,
            voucher_id TYPE string,
            voucher TYPE string,
            invoice_id TYPE belnr_d,
            voucher_len1 TYPE i,
            voucher_len TYPE i.
      TYPES:
      BEGIN OF lt_regup,
            xblnr TYPE xblnr1,
            belnr TYPE belnr_d,
      END OF lt_regup.
      DATA: lt_regup TYPE STANDARD TABLE OF regup,
            lv_regup TYPE regup.
    Hope this helps.
    Raja.A
    Edited by: Raja.A on Feb 16, 2011 7:17 PM

  • How to add norwegian language to my ipa-file in Adobe Flash Professional and Settings for AIR

    Hi,
    How to add Norwegian languages to my ipa-file in Adobe Flash Professional and Settings for AIR?
    The Norwegian users get my apps in english instead of Norweigan. Desperate for help!
    Regards Ylva

    Sorry but you will not get help here for that problem. This forum is about AIR Help, an online help format produced using AIR, it is not about AIR itself.
    I'll see if I can move it.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • In Mac how to get the Full name of a file Programmatically?

    Hi Friends,
             I am doing one Mac application for displaying the contents of a file. I can able to get some information about the file by using this code below...
      NSDictionary *dict=[fileManager attributesOfItemAtPath:myPath error:nil];
    Now I want to get the some other informations also like Full Name, copyRight, version... So Please suggest me how to get the full name of a file Programmaticallly?

    Your question doesn't make sense.
    First off, if you are going to get the attributes of a file, you need its full name before you can do anything. So that's part one taken care of.
    This function returns a dictionary full of typical file information (type, size, mod dates, etc.) as well as some HFS data (creator code, type code) which, I strongly suspect, are not "pulled out of the file" but rather generated on the spot. (See NSFileManager for the full list of attribute keys.)
    The other items you hoped of retrieving are not part of the regular file system. Sure, a Truetype font has a copyright string and a version, but what about an HTML file? A PNG? A text file you just created?
    There simply are no standard functions to retrieve copyright and version.

  • How to get the owner name for the file in ftp using abap ?

    Hi folks ,
    How to get the owner name for the file in ftp using abap ? please help me very ugernt . I tried with all standard FTP commands
    but doest work out me . Helping in this regard highly appreciated ...
    Thanks and regards,
    Swarupa Vanarchi

    Hi
    dont you  have used the os user while calling the FTP_CONNECT FM?
    Hope you are not talking about the user executing the FTP program.
    Else If you are talking about the FTP file creator then its not related to abap as you can handle it by maintaining the user in file name itself.
    May be i am going too far with if and elses here as your question possesses no  clarity.
    Plz elaborate your requirement  before anybody can help.
    Regards
    sateesh

  • How can i pass the name of the file polled by the file adapter to next step

    Hi XI guru's ,
    How can i pass the name of the file polled by the file adapter to next step in a BPM..?
    regards,

    Use Adapter-Specific Message Attributes and map that value in udf to the BPM message.
    Also see this
    /people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
    Regards,
    Prateek

  • How to add more disk space into /   root file system

    Hi All,
    Linux  2.6.18-128
    can anyone please let us know how to add more disk space into "/" root file system.
    i have added new hard disk with space of 20GB, 
    [root@rac2 shm]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/hda1             965M  767M  149M  84% /
    /dev/hda7             1.9G  234M  1.6G  13% /var
    /dev/hda6             2.9G   69M  2.7G   3% /tmp
    /dev/hda3             7.6G  4.2G  3.0G  59% /usr
    /dev/hda2              18G   12G  4.8G  71% /u01
    LABLE=/               2.0G     0  2.0G   0% /dev/shm
    /dev/hdb2             8.9G  149M  8.3G   2% /vm
    [root@rac2 shm]#

    Dude! wrote:
    I would actually question whether or not more disks increase the risk of a disk failure. One disk can break as likely as one of two of more disks.
    Simple stats.  Buying 2 lottery tickets instead of one, gives you 2 chances to win the lottery prize. Not 1. Even though the odds of winning per ticket remains unchanged.
    2 disks buy you 2 tickets in The-Drive-Failure lottery.
    Back in the 90's, BT (British Telecom) had a 80+ node OPS cluster build with Pyramid MPP hardware. They had a dedicated store of scsi disks for replacing failed disks - as there were disk failure fairly often due to the number of disks. (a Pryamid MPP chassis looked like a Xmas tree with all the scsi drive LEDs, and BT had several)
    In my experience - one should rather expect a drive failure sooner, than later. And have some kind of contingency plan in place to recover from the failure.
    The use of symbolic links instead of striping the filesystem protects from the complete loss of the enchilada if a volume member fails, but it does not reduce the risk of loosing data.
    I would rather buy a single ticket for the drive failure lottery for a root drive, than 2 tickets in this case. And using symbolic links to "offload" non-critical files to the 2nd drive means that its lottery ticket prize is not a non-bootable server due to a toasted root drive.

  • HT1849 how to add folder to music library on itunes 11.1

    Can some one please help me how to add a folder to music library. I can see add a file to music library option but not folder option.
    Thanks in Advance

    You should be able to add folders via the File > Add To Library menu option - if I go into that and highlight the folder that I want to add in the pop-up dialogue box, then clicking the Open button at the bottom of the dialogue box adds that folder's content to my library

  • How to add folder to itunes

    How do you add a folder from your computer to your music library vs. a file.

    Hi Kbosborne89,
    Thanks for visiting Apple Support Communities.
    You should have an option for adding folders to iTunes, as well as individual files. See this article for more information:
    iTunes: About the Add to Library, Import, and Convert functions
    http://support.apple.com/kb/ht1347
    If you want to add files to your iTunes library, you can drag files from the Finder to the appropriate icon on the left side of the iTunes window, or choose File > Add to Library (on Windows, choose Add File to Library or Add Folder to Library) and then select the song file or folder you want to add.
    All the best,
    Jeremy

  • How to add folder in picture library programmatically

     
    Hi All,
    I tried to add folder using below code but getting error of "Missing FileLeaf"
    try
                    if (properties.List.Title.ToString() == Utility.ListName.Events.ToString())
                        using (SPSite objSite = properties.Site)
                            using (SPWeb objWeb = properties.Web)
                                SPListItem lstEvent = properties.ListItem;
                                string folderName = Convert.ToString(lstEvent["Title"]) + "_" + DateTime.Now.ToShortDateString();
                                if (!string.IsNullOrEmpty(folderName))
                                    SPList lstEventPictures = objWeb.Lists.TryGetList(Utility.LibraryName.EventPictures.ToString());
                                    if (lstEventPictures != null)
                                        objWeb.AllowUnsafeUpdates = true;
                                        //SPListItemCollection folders = lstEventPictures.Folders;
                                        //folders.Add(lstEventPictures.RootFolder.ServerRelativeUrl 
    , SPFileSystemObjectType.Folder , folderName);
                                        ///* create a folder under the path specified
                                        SPListItem folderItem = lstEventPictures.Items.Add(lstEventPictures.RootFolder.ServerRelativeUrl,
    SPFileSystemObjectType.Folder , folderName);
                                        ///* set the folder name and update */
                                        //folderItem["Title"] = folderName;
                                        folderItem.Update();
                                        lstEventPictures.Update();
                                        objWeb.AllowUnsafeUpdates = false;
                catch (Exception ex)
                    Utility.SPTraceLogError(ex);
    Help me to resolve. Thanks in advance.

    Hi DK,
    You can use below mentioned code to add folder in any of your library. You need to changes little bit code as per your requirement.
    /// <summary>
    /// Provide utilities methods related to folder management
    /// </summary>
    public static class SPFolderUtilities
        /// <summary>
        /// Ensures the specified folder exists.
        /// </summary>
        /// <param name="list">The list where to create the folder.</param>
        /// <param name="subFolderPath">The sub folder path.</param>
        /// <returns>
        /// The existing <see cref="SPFolder"/> or a newly created if it did not exists.
        /// </returns>
        public static SPFolder EnsureFolder(SPList list, string subFolderPath)
            Contract.Requires<ArgumentNullException>(list != null);
            Contract.Requires<ArgumentNullException>(!string.IsNullOrEmpty(subFolderPath));
            if (!IO.SPPathUtilities.IsFileOrFolderNameValid(subFolderPath, true))
                throw new ArgumentException("Invalid characters in the file or folder name", "subFolderPath");
            var folderPaths = subFolderPath.Split('/');
            var currentFolder = list.RootFolder;
            for (int i = 0; i < folderPaths.Length; i++)
                currentFolder = list.ParentWeb.GetFolder(currentFolder.Url); // hacky refresh
                var subFolder = currentFolder.SubFolders.Cast<SPFolder>().FirstOrDefault(f => string.Compare(f.Name, folderPaths[i], true) == 0);
                if (subFolder == null)
                    var newFolderItem = list.Items.Add(currentFolder.ServerRelativeUrl, SPFileSystemObjectType.Folder, folderPaths[i]);
                    newFolderItem.SystemUpdate();
                    subFolder = newFolderItem.Folder;
                currentFolder = subFolder;
            return currentFolder;
    And here is the specifc code that you can use for Picture library only
    Question
    Vote as helpful
    0
    Vote
    yes the code sample provided by you is to create a image library and then to add a folder to it but i'm not sure with the string.empty being passed to list.items.add. i would still recommend to use the solution suggested by me. to check if library exists or
    not what you have to do is 
    SPSite _MySite = new SPSite("SERVERIP");  
                    using (SPWeb currentweb = _MySite.OpenWeb())
    SPList imageLib = currentweb.Lists["NewImages]
    if( imageLib == null)
    Guid listId = currentweb.Lists.Add("NewImages", "Picture Library", SPListTemplateType.PictureLibrary);
     imageLib t = currentweb.Lists[listId];    
    SPDocumentLibrary
     _MyDocLibrary =
    (SPDocumentLibrary)
    imageLib ;
                     SPFolderCollection _MyFolders = _MyWeb.Folders;
                    _MyFolders.Add("http://adfsaccount:2222/My%20Images/" + <<subfolderName>> + "/");
                    _MyDocLibrary.Update();
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • How to add a project to the deployment components under deployment server

    Hi,
    When I run one of my projects in JSC, I got following error message:
    "application NeuronBank is already deployed on other targets. Please use create-application-ref command to create reference to the specified target; requested operation cannot be completed."
    So I checked the Deployed Components under Deployment Server, and my project is not listed there. I think that this might cause my problem. But I have no idea why this can happen? Can I add my project into this list and How?
    Thanks,

    Check the following threads
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=56901
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=64307

Maybe you are looking for