Add to Folder Name script

I am missing the script Add to Folder Names. I still have the alias, but the script is missing. Any sources for this script?

Hi Lannis, here it is...
Add Prefix-Suffix to Fldr Names
Copyright © 2001 Apple Computer, Inc.
You may incorporate this Apple sample code into your program(s) without
restriction.  This Apple sample code has been provided "AS IS" and the
responsibility for its operation is yours.  You are not permitted to
redistribute this Apple sample code as "Apple sample code" after having
made changes.  If you're going to redistribute the code, we require
that you make it clear that the code was descended from Apple sample
code, but that you've made changes.
--set the source_folder to (choose folder with prompt "Pick the folder containing the folders to rename:")
try
  tell application "Finder" to set the source_folder to (folder of the front window) as alias
on error -- no open folder windows
  set the source_folder to path to desktop folder as alias
end try
set the prefix_or_suffix to ""
repeat
          display dialog "Enter the prefix or suffix to use:" default answer the prefix_or_suffix buttons {"Cancel", "Prefix", "Suffix"}
  copy the result as list to {the prefix_or_suffix, the button_pressed}
  if the prefix_or_suffix is not "" then exit repeat
end repeat
set the item_list to list folder source_folder without invisibles
set source_folder to source_folder as string
repeat with i from 1 to number of items in the item_list
  set this_item to item i of the item_list
  set this_item to (source_folder & this_item) as alias
  set this_info to info for this_item
  set the current_name to the name of this_info
  if folder of this_info is true then
                    if the button_pressed is "Prefix" then
  set the new_file_name to the (the prefix_or_suffix & the current_name) as string
  else
  set the new_file_name to the (the current_name & the prefix_or_suffix) as string
  end if
  my set_item_name(this_item, the new_file_name)
  end if
end repeat
beep 2
on set_item_name(this_item, new_item_name)
          tell application "Finder"
  --activate
  set the parent_container_path to (the container of this_item) as text
  if not (exists item (the parent_container_path & new_item_name)) then
                              try
  set the name of this_item to new_item_name
  on error the error_message number the error_number
                                        if the error_number is -59 then
                                                  set the error_message to "This name contains improper characters, such as a colon (:)."
  else --the suggested name is too long
  set the error_message to error_message -- "The name is more than 31 characters long."
                                        end if
                                        --beep
  tell me to display dialog the error_message default answer new_item_name buttons {"Cancel", "Skip", "OK"} default button 3
  copy the result as list to {new_item_name, button_pressed}
                                        if the button_pressed is "Skip" then return 0
  my set_item_name(this_item, new_item_name)
  end try
  else --the name already exists
                              --beep
                              tell me to display dialog "This name is already taken, please rename." default answer new_item_name buttons {"Cancel", "Skip", "OK"} default button 3
  copy the result as list to {new_item_name, button_pressed}
                              if the button_pressed is "Skip" then return 0
  my set_item_name(this_item, new_item_name)
  end if
  end tell
end set_item_name

Similar Messages

  • How to alter 'add to file names' script?

    I'm working on some stuff that I need to get done today, and it dawned on me that I could save a lot of time if I had a certain script perform a simple task for me. Unfortunately I haven't been able to get one to work right. I just want to be able to add the same thing onto the end of a file name... For instance, 01.jpg would become 01x.jpg, 02.jpg becomes 02x.jpg and so on. The basic 'Add to File Names' script will almost work, but it adds to the front of the name, not the back. Does anyone know how I could alter the lines in that script to get it to do what I want?
    Thanks for any help,
    Dave

    01. Under 'Alternative 01:', the line ...
    No error checking for folders is included. Such is an exercise for the student.
    ... should have been ...
    --No error checking for folders is included. Such is an exercise for the student.
    02. The error message ...
    "System Events got an Error: NSCannotCreateScriptCommandError".
    Hmmm, those replying are using MacOS X 10.4.x, and you are using MacOS X 10.2.x. Others, with Macs running MacOS X 10.2.x and using AppleScript code from MacOS X 10.3.x and later, do at times experience 'NSCannotCreateScriptCommandError' error messages.
    In the code below, 'System Events' was replaced with 'Finder'. Some additional editing was performed, where required.
    Alternative 01:
    property tAddition : "x" -- The charcter or string to append to the files' name.
    tell application "Finder"
    set tSelection to selection
    --No error checking for folders is included. Such is an exercise for the student.
    repeat with i in tSelection -- Cycle through the provided files.
    set {displayed_name, name_Extension} to {displayed name of (i as alias), name extension of (i as alias)}
    if ((displayed_name ends with name_Extension) and ((count name_Extension) > 0)) then
    -- Handle file names which include a name extension.
    set (name of i) to ((get (characters 1 through ((count displayed_name) - (count name_Extension) - 1) of displayed_name) as string) & tAddition & "." & name_Extension)
    else
    set (name of i) to (displayed_name & tAddition) -- Handle file names without a name extension.
    end if
    end repeat
    end tell
    Save the AppleScript code as a script.
    Move file (or a copy or alias of the file) to the '~/Library/Scripts/' folder.
    Select files to be processed, in 'Finder'.
    Select the script, via the 'Script menu'.
    Alternative 02:
    property tAddition : "x" -- The charcter or string to append to the files' name.
    on run {} -- User double-click on the applet.
    display dialog "Drag file(s) onto applet for processing."
    end run
    on open selected_Items -- User dragged items onto applet.
    my handleitems(selectedItems) -- Processed items dragged onto applet.
    end open
    on handleitems(localItems)
    -- No error checking for folders is included. Such is an exercise for the student.
    tell application "Finder"
    repeat with i in local_Items -- Cycle through the provided files.
    set {displayed_name, name_Extension} to {displayed name of i, name extension of i}
    if ((displayed_name ends with name_Extension) and ((count name_Extension) > 0)) then
    -- Handle file names which include a name extension.
    set (name of i) to ((get (characters 1 through ((count displayed_name) - (count name_Extension) - 1) of displayed_name) as string) & tAddition & "." & name_Extension)
    else
    set (name of i) to (displayed_name & tAddition) -- Handle file names without a name extension.
    end if
    end repeat
    end tell
    end handle_items
    Save the AppleScript code as an applet (application).
    Drag files to be processed, onto the applet, in 'Finder'.

  • Incrementing folder name script? help...

    Here is the thing, im into tethering mode in my nikon camera (Picture talk/transfer protocol) in which it automatically saves every shot into a "hot folder" (~desktop/images) i've got my action to automate 4 pictures to be posted into a 4R size contact sheet, saved as jpeg, and closes the window. though the hard part is, i can't figure out how to automatically script it so that after saving and closing the contact sheet, all of the four raw jpg  shots + the newly saved contact_sheet.jpg file would be foldered into a subfolder (inside ~desktop/images) which generates a unique/incrementing folder names everytime. And so, i could continue shooting, and every after 4 shots, i could use my action+ the given script so it automatically does the foldering for me. Below are some examples of what's inside the "image folder" looks like.
    above is the ïmage folder before the script should work
    above is how the script should work, then after, if another 4 shot has been taken, i could execute the action to make and save the contact sheet and hopefully, if i would use the script again, it would put these five new *.jpg files to a incremented folder name like "Contact (1)" then for the next batch "Contact (2)"... and so on...
    Can anyone help me please? Tnx!

    I think creating that folder comes close to this, with a few adjustments. I really understand a few in scripting and so I hope someone could help out..
    function createFolder(file) {
      var parentFolder = file.parent;
      var saveFolder = new Folder( parentFolder + '/' + file.name.substring( 0, 8 ) );
      if( !saveFolder.exists ) saveFolder.create();
      var saveFile = new File( saveFolder + '/' + file.name);
      if( file.copy( saveFile ) ) file.remove();
    function main() {
       var folder = new Folder("~/Desktop/images");
       var files = folder.getFiles();
       for (var i = 0; i < files.length; i++) {
         var f = files[i];
         if (f instanceof File) {
          createFolder(f);
    main();

  • Applescript Help - Add folder name to contents

    Hi everyone
    I am an Applescript newbie, and I need help!
    I have a several folders with 2 jpegs inside them.
    All the jpegs are titled "image1.jpg" & "image2.jpg"
    I am looking for a quick way to add the folder name as a prefix to each jpeg.
    Example:
    Folder name - Wellington Boots
    Images inside - image1.jpg
    The outcome I am looking for is:
    Folder name - Wellington Boots
    Images inside - Wellington Boots-image1.jpg
    This might be really easy to do, but I am struggling to find info on how to do it. Can anyone help?

    Actually, to make it a bit more robust you can change the script to
    tell application "Finder"
      repeat with anItem in the input
        set prefix to (name of container of anItem) & "-"
        set theName to name of anItem
        if theName does not start with prefix then -- already prefixed
          set name of anItem to prefix & theName
        end if
      end repeat
    end tell
    That way it won't add a prefix if there already is one.

  • Updating my script to add in the Name of the VM in VMM

    Hello,
    I run the following script from our VMM server and it's working well in that it gives me the location of the folder where the VM lives and whether or not the VM is fixed or dynamic (or a checkpoint).
    But what's missing is I want to add in the Name of the VM that this location belongs too.  The $_.Name gives me the name of the .vhd file...but in some cases the name of the .vhd files is just Cdrive or Ddrive. 
    $results = @()
    $VMs = Get-SCVirtualMachine
    Get-SCVirtualMachine | Get-SCVirtualHardDisk | foreach-object {
    $results += New-Object PsObject -Property @{
    Name = $_.Name
    Location = $_.Location
    VHDType = $_.VHDType
    $Results | Export-Csv -NoTypeInformation "C:\Powershell_Scripts\results.csv"
    Thank you.

    Hi Greavette,
    To add the vm name column in the output, please refer to this script, please note I haven't tested:
    $results = @()
    $VMs = (Get-SCVirtualMachine).name #get all vm names
    foreach-object($vm in $vms){
    Get-SCVirtualHardDisk -VM $vm | foreach-object {
    $results += New-Object PsObject -Property @{
    VM = $vm
    Name = $_.Name
    Location = $_.Location
    VHDType = $_.VHDType}
    $Results | Export-Csv -NoTypeInformation "C:\Powershell_Scripts\results.csv"
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang

  • Need a script to do the following... rename files based on folder name...

    Hi. Macophile just starting to tread the waters of Applescript, trying to use Automator but don't think it will do what I need.
    I have many images stored with-in folders that I would like to extrapolate a given number of characters from the folder name and Add Text to the files within those given folders.
    Basically...
    Folder name is C00100_Descriptive
    Files within folder are just Descriptive_01, Descriptive_02
    Would like to make all files within a given folder take the first 7 characters from the folder and Add that text to all files and files within subfolders of that folder to make the resulting files shown as...
    C00100Descriptive01
    C00100Descriptive02
    Along with this I would also like to incorporate into the script, an added step to create Thumbnail jpegs of the image files in a Subfolder under C00100_Descriptive folder.
    I can see how to do that in automator but not specifying parameters such as taking a certain number of characters from the folder the file resides in and adding that selected text to the files.
    Ideally I would like a droplet or something that I could take a bunch of folders and drop them on the droplet to perform these actions.
    Any advice, help or guidance would be really helpful! Thanks in advance.

    Awesome, you're quite welcome, glad to hear it worked for ya!! Here's another version of the script that will rename the thumb files as jpg...
    <pre style="width:630px;height:auto;overflow-x:auto;overflow-y:hidden;"
    title="Copy this code and paste it into your Script Editor application.">on run
    set theItems to choose folder with multiple selections allowed
    open (theItems)
    end run
    on open (itemList)
    repeat with anItem in itemList
    set theInfo to info for anItem
    --VERIFY THAT THE OPENED ITEM IS A FOLDER
    if folder of theInfo and not package folder of theInfo then
    --SET PATH TO THE FOLDER
    set theFolder to POSIX path of anItem
    --GET FIRST PART OF FOLDER NAME
    set folderNameStart to do shell script "echo " & ¬
    quoted form of (name of theInfo) & "|awk -F'_' '{print $1}'"
    --GET ALL FILE NAMES
    set fileList to list folder anItem without invisibles
    --PROCEED IF FOLDER NOT EMPTY
    if fileList is not {} then
    --SET PATH TO THUMBNAIL FOLDER
    set thumbFolder to theFolder & "_thumbs/"
    --CREATE FOLDER IF IT DOESN'T ALREADY EXIST
    try
    do shell script "mkdir " & quoted form of thumbFolder
    end try
    --PROCESS FILES
    repeat with fileName in fileList
    --SET PATH TO CURRENT FILE
    set oldFile to theFolder & fileName
    --PROCEED IF FILE IS NOT A FOLDER
    set oldFileInfo to info for POSIX file oldFile
    if not folder of oldFileInfo then
    --SET NEW FILE AND THUMB FILE PATHS
    set newFileName to folderNameStart & "_" & fileName
    set newFile to theFolder & newFileName
    set theExt to name extension of oldFileInfo
    set thumbName to text 1 through -((length of theExt) + 1) of newFileName & "jpg"
    set thumbFile to thumbFolder & "thumb_" & thumbName
    --RENAME FILE
    do shell script "mv " & quoted form of oldFile & space & ¬
    quoted form of newFile
    --CREATE THUMBNAIL
    --REPLACE '128' WITH MAX HEIGHT OR WIDTH OF THUMB
    try
    do shell script "sips -s format jpeg -s dpiHeight 72 -s dpiWidth 72 -Z 128 " & ¬
    quoted form of newFile & " --out " & quoted form of thumbFile
    end try
    end if
    end repeat
    end if
    end if
    end repeat
    end open</pre>

  • Add file name script not working in CS3

    I have this wonderful script (written by Brian Price) back in 2004 for PS7 that adds the file name to an image ( I use it for adding file names to small images to be used in a slideshow). It works great ion Photoshop CS, but when I try to use it as part of a batch action in CS3 it stalls on line 9. OIt works fine when run on just one image in CS3 . . . it just stalls when run as part of a batch action!
    Any help GREATLY appreciated!
    Many Thanks,
    Peter Thompson
    [email protected]
    www.photohawaii.com
    Here's the script:
    // this script is a variation of the script addTimeStamp.js that is installed with PS7
    //Copyright 2002-2003. Adobe Systems, Incorporated. All rights reserved.
    //All amendments Copyright Brian Price 2004 ([email protected])
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.PERCENT;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = "";
    // Set font size in Points
    myTextRef.size = 30;
    //Set font - use GetFontName.js to get exact name
    myTextRef.font = "ComicSansMS";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 255;
    newColor.rgb.green = 255;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 5, 94);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

    I have this wonderful script (written by Brian Price) back in 2004 for PS7 that adds the file name to an image ( I use it for adding file names to small images to be used in a slideshow). It works great ion Photoshop CS, but when I try to use it as part of a batch action in CS3 it stalls on line 9. OIt works fine when run on just one image in CS3 . . . it just stalls when run as part of a batch action!
    Any help GREATLY appreciated!
    Many Thanks,
    Peter Thompson
    [email protected]
    www.photohawaii.com
    Here's the script:
    // this script is a variation of the script addTimeStamp.js that is installed with PS7
    //Copyright 2002-2003. Adobe Systems, Incorporated. All rights reserved.
    //All amendments Copyright Brian Price 2004 ([email protected])
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.PERCENT;
    try
    var docRef = activeDocument;
    // Create a text layer at the front
    var myLayerRef = docRef.artLayers.add();
    myLayerRef.kind = LayerKind.TEXT;
    myLayerRef.name = "Filename";
    var myTextRef = myLayerRef.textItem;
    //Set your parameters below this line
    //If you wish to show the file extension, change the n to y in the line below, if not use n.
    var ShowExtension = "n";
    // Insert any text to appear before the filename, such as your name and copyright info between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextBefore = "";
    // Insert any text to appear after the filename between the quotes.
    //If you do not want extra text, delete between the quotes (but leave the quotes in).
    var TextAfter = "";
    // Set font size in Points
    myTextRef.size = 30;
    //Set font - use GetFontName.js to get exact name
    myTextRef.font = "ComicSansMS";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 255;
    newColor.rgb.green = 255;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 5, 94);
    // Set the Blend Mode of the Text Layer. The name must be in CAPITALS - ie change NORMAL to DIFFERENCE.
    myLayerRef.blendMode = BlendMode.NORMAL;
    // select opacity in percentage
    myLayerRef.opacity = 100;
    // The following code strips the extension and writes tha text layer. fname = file name only
    di=(docRef.name).indexOf(".");
    fname = (docRef.name).substr(0, di);
    //use extension if set
    if ( ShowExtension == "y" )
    fname = docRef.name
    myTextRef.contents = TextBefore + " " + fname + " " + TextAfter;
    catch( e )
    // An error occurred. Restore ruler units, then propagate the error back
    // to the user
    preferences.rulerUnits = originalRulerUnits;
    throw e;
    // Everything went Ok. Restore ruler units
    preferences.rulerUnits = originalRulerUnits;
    else
    alert( "You must have a document open to add the filename!" );

  • Apple script to replace content in specific folders with folder names in csv

    Can anyone please help me with this scenario... It would greatly be appreciated!
    1. I have a list in csv containing 3 columns: Column 1 = Folder name • Column 2 = Entry A • Column 3 = Entry B
    2. I have 100 folders named the same as Column 1.  in each folder there is different files.
    This is what I need.
    I need the script to to find the folder based upon column 1.
    Then the script should search for place holder named "Entry A" and replace it's contents with data from Column 2.  There are several files with in the folder that contain place holder "Entry A" so it should replace it all but must remain with in that folder.
    Then same for column 3 find place holder named Entry B and replace.
    Then it should save all files.
    Any help is greatly appreciated!  Thank you!

    Can anyone please help me with this scenario... It would greatly be appreciated!
    1. I have a list in csv containing 3 columns: Column 1 = Folder name • Column 2 = Entry A • Column 3 = Entry B
    2. I have 100 folders named the same as Column 1.  in each folder there is different files.
    This is what I need.
    I need the script to to find the folder based upon column 1.
    Then the script should search for place holder named "Entry A" and replace it's contents with data from Column 2.  There are several files with in the folder that contain place holder "Entry A" so it should replace it all but must remain with in that folder.
    Then same for column 3 find place holder named Entry B and replace.
    Then it should save all files.
    Any help is greatly appreciated!  Thank you!

  • HT4236 hello , when i want to add a folder of photo and I select then sync that folder in itune,there will be 2 folder in my iphon :1-in name of photo library 2-in name of photo library . how i can delete photo library folder from my iphone ?

    hello , i want to add a folder of photo to my iphon from my comp. i select that folder in itune and sync with my iphone . but i have 2 folder in my iphone .
    1-in name of the folder 2-in name of photo library.how i can delete photo library from my iphone but i still have my photo folder?

    You can't delete the Photo Library. The iPhone stores photos the same way iPhoto does on a Mac. All photos are synced to your Photo Library. The various albums/folders merely contain pointers to the actual photos which are in your Photo Library, they are not duplicates.

  • How to display Contribution Folder Name using Idoc Script

    Hi, could ypu please tell me how can we display Contribution Folder name using Idoc script by passing dCollectionID. Appreciate your help on this. Thank you
    Regards,
    Ashok

    You should be able to get it directly as dCollectionName, but might have to execute a query to fill in the result set first: select dCollectionName from COLLECTIONS where DCOLLECTIONID = ?

  • Active Content: cannot change Scripts folder name?

    Using DW 8.0.2.
    After I accept the Active Content workaround to be applied to
    my pages, I'd like to change Scripts folder name to "scripts" or
    even move the scripts to my "jscript" folder, which already exists.
    When I do this DW correctly asks to update the page links, but even
    with the correct links the scripts does not run anymore.
    It seems to be caused by some JS code included in the
    scripts, which points to "Scripts" folder in site root. But I don't
    know enough JS to identify and modify this. Any help will be very
    welcome.

    Shouldn't happen. I have moved the AC .....js file many times
    to different
    folders and if the path is correct, everything works
    properly. Can you
    please post a link.
    You cannot lose until you give up !!!
    "Freiberger" <[email protected]> wrote in
    message
    news:eou61k$enn$[email protected]..
    > Using DW 8.0.2.
    >
    > After I accept the Active Content workaround to be
    applied to my pages,
    > I'd
    > like to change Scripts folder name to "scripts" or even
    move the scripts
    > to my
    > "jscript" folder, which already exists. When I do this
    DW correctly asks
    > to
    > update the page links, but even with the correct links
    the scripts does
    > not run
    > anymore.
    >
    > It seems to be caused by some JS code included in the
    scripts, which
    > points to
    > "Scripts" folder in site root. But I don't know enough
    JS to identify and
    > modify this. Any help will be very welcome.
    >

  • Script or Automator to reorder text in file/folder name

    Hello,
    Similar to this discussion: https://discussions.apple.com/thread/2632228, I would like to reorder a large number of folder names. Currently, they are set up as follows:
    "Name - Year" and would like to change them all to "Year - Name". I have over 200 folders named in this format so I need to find either a way to do this via the automator or via a script. So far I can't find what I need in the Automator. Any ideas? Thank you

    try this:
    set folderList to choose folder with multiple selections allowed
    tell application "System Events"
              repeat with thisFolder in folderList
                        set folderName to name of thisFolder
      -- assumes none of the folders have extensions, or anything aside from "Name - Year", and that there are no spaces inside the name or year
      -- it can be generalized to deal with that, if needed
                        set {oldTID, my text item delimiters} to {my text item delimiters, {" ", "-"}}
                        tell folderName
                                  set {n, d} to {first text item, last text item}
                        end tell
                        set my text item delimiters to oldTID
                        set name of thisFolder to d & " - " & n
              end repeat
    end tell

  • How to add folder name to document library view

    Using Project Server 2010.
    We have a set of standard folders on each of our project sites for Requirements, Development, Testing, etc.  Currently, we display this library like you would see in File Explorer - you see a list of folders at the top, double-click on a folder
    to drill down, etc.
    I want to display these same documents as a straight list of all documents - not grouped into folders - but with the folder name displayed next to it (sort of like an attribute).  I can create the list view easily by selecting the "Show all items
    without folders" option in the view settings; however, the containing folder name is not available as a column name.
    Is this possible?

    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:
      

  • AppleScript "Add to File Names.scpt" (in Finder Scripts) adds "Prefix" to end of files rather than adding actual prefix?

    This may be a quirk with my setup, but when the file "Add to File Names.scpt" runs in Mavericks "Prefix" is appended to the end of filenames rather than the term I would like to be added as a prefix...unsure if this can be reproduced on other comptuers? Similarly, as a test, if a term is intended to be added as a suffix to a file name then "Suffix" is appended to the end of a file name - rather than the term.
    If this is a bug is there a fix?
    Thanks

    apparently this is a bug with a workaround as described here:
    https://discussions.apple.com/message/24085265#24085265

  • Adding timestamp to Archive folder name

    Hi All,
    I need to add the current date to the archive folder name of my file sender adapter, so that files are archived in folders based on the date on which they are picked.
    Can this be achieved?
    Regards,
    Diptee

    Diptee,
    I am not sure if there is any easy way of passing filename directly to script which is called from OS.
    The other work around i can see here is...have a temp archive folder where your sender communication channel will archive the file adding tmpstmp in temp archive folder and then call a script and read the file name in the temp archive directory and make new archive directory with the archived file name and move the file from temp to new archive directory.
    In this way you can have your files archived in the directories which tmpstmp too.
    you just need to use simple commands to read the filename and creating directory and moving the file...
    Thanks,
    Prasanthi.

Maybe you are looking for

  • How do I view my web pages in the browser again?

    I was able to work on my web pages in Dreamweaver MX2004 and view them in a browser until 3 days ago.  I have also been able to make changes on my web pages which showed up in my website until around 3 days ago.  i am very frustrated. I can no longer

  • PREC-Approved Trips- Status from "to be Settled" to "Settled" Not Working

    Hi all, We have upgraded from 4.6C to ECC6.00. We use Travel Management, and the payment happens through AP. Trips are approved through WF approval. Once Approved Status gets changed from --   Trip Completed .to be settled ====Trip Approved.to be set

  • Suche ein Alternative App zum Galaxy Tab Note 10.1

    Suche ein guten App der mit der Galaxy Tab, Note 10.1 vergleichbar ist. Wer kann helfen?

  • Here Drive+ Beta & Here Maps do not activate on my...

    Hi,  I have installed Here Drive + Beta and Here Maps on my Nokia 620, when I click on them to activate they just return to the app list. I have un-installed and re-installed several times over various days and it still does not load. Important to no

  • Role to manage all rooms

    Hi All, Is there any general role on the portal that can give user the ability to manage all the rooms (complete access to all the rooms)? Something that can give permissions to access Member maintenance, Room maintenance etc of all the rooms. Thanks