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!" );

Similar Messages

  • [js] CS Scripting not working with CS3

    Hello,
    We had a JavaScript made for us that enabled the user to exchange certain text within a document.
    This script works fine with CS (Ver.3.0.1) but gives a JavaScript Error - #55, Error String: Object does not support the property or method 'findPreferences' with CS3 (Ver.5.0)
    I have tried 'tinkering' around with the scripting - but I have zero experience with JavaScript and have not found a solution.
    Additionally the people that wrote the initial script are not available.
    I have bought several books but they all seem like alien-language to me
    Below is the section of origional CS scripting.
    Can anyone point out to me WHY this script does not work with CS3?
    And WHERE I should start looking - changing?
    Thanks in advance for your help and guidence.
    Lee
    // Exchange the text
    function actProjectData(oneDoc, oneResult){
    app.findPreferences = null; app.changePreferences = null;
    oneDoc.search(undefined, true, true, oneResult[0],{appliedCharacterStyle:oneDoc.characterStyles.item(myProjectTitleCharStyleNa me)}, undefined);
    oneDoc.search(undefined, true, true, oneResult[1],{appliedCharacterStyle:oneDoc.characterStyles.item(myOfferNoCharStyleName)}, undefined);
    oneDoc.search(undefined, true, true, oneResult[2],{appliedCharacterStyle:oneDoc.characterStyles.item(myOfferDateCharStyleName) }, undefined);
    app.findPreferences = null; app.changePreferences = null;

    > Come to think of it, maybe it's easier to create a folder "Version 4.0 Scripts" under your scripts folder and place your CS script in there. Maybe that will do the trick. Should have thought of that earlier.
    Tried this, but it didn't seem to do anything... But certainly a 'try' worth.
    Currently playing around with the:
    > app.findTextPreferences.findWhat = "a";
    app.changeTextPreferences.changeTo = "b";
    oneDoc.changeText();
    I've got to the point where I have no error messages :-) Now I'm really flying.....
    Fact is - not all text and also the wrong text is replaced!!!
    I'm currently playing with the script to try and replace
    all texts with a given paragraph style with the entered text...
    Not proving to be simple for me, but I'm learning rather a lot!
    Now that doesn't sound very clear when I go back and read it!
    What I want to say is:
    Each page of the document has the project name, No & Date on it (each having their own paragraph style)
    so
    With this script it asks you the Project name, No. and Date and then goes
    through the whole document and replaces all instants of those texts with specific paragraph styles with the newly 'entered' text.
    Proving to be a little mountain for me - Thought it would only be a hill!

  • Add file name script

    I have a script for adding the file name as a text layer in PS. This script called "AddFileName02.js" worked by placing the file in the scripts folder on the hard drive. This script worked for PS CS2 (and I think PS CS3). This script could then be accessed by <file><automate><scripts>
    Now that I have PS CS5 I have tried to place this script into the same place in PS CS5, but it does not appear. (I restarted PS) As I see it there could be two possible problems.
    1 The script has a .js extension and all other scripts in PS CS5 have a .jsx extention. So a newer version may be needed.
    2 I have placed the script in the wrong folder.
    Can anyone help?

    Just rename ist with the jsx-suffix and place it in the Presets > Scripts-folder.
    If that does not work you could try the Photoshop Scripting Forum, though some of the regulars also do drop by in this Forum.

  • JS Scripts not working in CS3

    When I was using CS2 2 years ago I was asked to make a calendar for a client. I used a script from Adobe Exchange. I have been asked to do the same this year. I am now running CS3... however this is the first time I have used my scripting panel since I upgraded and am having some troubles.
    I looked though a list of possible scripts and picked a few to try... But non of them seemed to work. I kept on trying more and more but none of them would run (even fairly new ones). I noticed that the file extentsion for this scripts is .JS but the scripts that come with CS3 is .JSX. I tried changing the extension but that did nothing.
    When I double click on the script from the scripting pannel it does nothing. just a micro second of seeing the spinning wheel and then back to the normal cursor.
    Any help? Am I missing something?
    Also this is on a Mac OS

    Thanks Dave
    Based on the information you have posted I have been doing everything correctly. But I am still having no luck.
    I did read an article by David Blatner on InDesign Secrets that talks about using the "Version" folders at http://indesignsecrets.com/using-old-scripts-in-cs3.php
    He mentions at the end a tip for people having trouble:
    >Bonus Script Troubleshooting Tip
    >By the way, Ive gotten a couple of emails from people who simply cant get their scripts to run on their Mac. They even did clean installations and the scripts still dont work. I was flummoxed, but Ryan Russelldedicated InDesignSecrets fancame up with a solution that worked for him. He noticed (with the help of Adobes tech support) that some of his folder names on his hard drive were slightly wrong.
    >Specifically, the folders in this path:
    >User>Library>Preferences>Adobe InDesign>Version 5.0
    >werent named the same as in this path:
    >User>Library>Cache>Adobe InDesign>Version 5.0
    >Apparently, thats all it takes for InDesign to break. He renamed the folders and all his scripts suddenly started working again. I dont know if that will help anyone else, but its worth looking into.
    Now I had a look at both folders and compared the two... they appear to be completely different and don't seem to relate at all. I don't know what I should try based on this suggestion.

  • "File / Add File To Library" Not Working For Particular File

    I believe I chose to delete a podcast. iTunes asked if I wanted to totally delete the file, or to leave it in a 'media file'. I didn't know what this meant so I chose to just leave it in a 'media file'. As expected, the podcast could no longer be seen in the iTunes Library / podcasts.
    Later I performed: "File / Add File To Library" of that same podcast (ie. an .mp3 file). The file does not seem to be anywhere in the Library. I'm wondering if it is not added because it thinks it is in some "media file" which cannot be seen within iTunes? No error message was given saying the file was already there; however, when i attempt to add other podcasts from the same directory on my computer, iTunes has no problem adding other podcasts.
    I've changed the directory to a different location on my harddrive, as well as changed the name of the podcast all to no avail. And spent 4 hours with this and am ready to pull my hair out.
    I think iTunes will not add this file because it thinks it is already there, although from no where in iTunes can i find it (ie. not under 'music', not under 'podcast', etc.).
    Any help would be greatly appreciated!

    "Won't add to library and doesn't give an error message" is usually a sign of minor corruption in the MP3 file. Treat it with a 3rd party tag cleanup program such as MP3val, and then it should be able to be added to your iTunes library.

  • Open dataset with Chinese file name does not work

    HI Guru,
       I have an issue now, when I try to open dataset '/test/file.txt'  it works, but when I tried to open a file name contains Chinese file name like open dataset '/test/文件.txt'  , it failed again and again, no matter in text mode or legacy text mode  or binary mode also I tried encodings.    I need to read/write files to application server.  the backend OS is HP Unix 11.
      thank you in advance.

    Moving this thread from WDA to ABAP General becuase it has nothing to do with WDA.  Please in the future pick your forum appropriately.

  • Update Script Problem CS2 to CS3 ( Time/Date/Year Script NOT WORKING IN CS3?

    The below script works in CS2 but not in CS3? WHY?
    //DESCRIPTION: Use to insert date/time into document.
    if (app.documents.length == 0) { exit() }
    insertDTs(app.documents[0]);
    function insertDTs(aDoc) {
    var curPrefs = aDoc.characterStyles[0].extractLabel("dtprefs");
    if (curPrefs == "") {
    // Doc has no prefs; use saved prefs
    curPrefs = getCurPrefs(File(getScriptPath().absoluteURI.replace(/Insert\.jsx/, "Prefs.txt")));
    } // end if curPrefs
    var prefParts = curPrefs.split("\n");
    if (prefParts[2] != "[None]") {
    insertIt(aDoc, prefParts[0], prefParts[2]);
    if (prefParts[3] != "[None]") {
    insertIt(aDoc, prefParts[1], prefParts[3]);
    function insertIt(aDoc, formString, cStyleName) {
    var formStrings= ["Day, Month, Year"]
    var theFuncs = [dayMonthYear]
    var charStyleStrings = aDoc.characterStyles.everyItem().name
    if (indexOf(charStyleStrings, cStyleName) < 1) { return } // style not found or is No Style
    var func = indexOf(formStrings, formString);
    if (func < 0) { return } // requested form not recognized
    var dateString = theFuncs[func](new Date());
    app.findPreferences = app.changePreferences = null;
    aDoc.search("", false, false, dateString, {appliedCharacterStyle:cStyleName});
    } // end insertIt
    function dayMonthYear(date) {
    date.setDate(date.getDate()+1);
    // returns dayName, monthName date, year
    var myDateString = date.toLocaleDateString();
    myParts = myDateString.split(" 0");
    if (myParts.length != 1) {
    myDateString = myParts[0] + " " +myParts[1];
    return myDateString.slice(0,-5) + "," + myDateString.slice(-5);
    function indexOf(array, find,offs) {
    for( var i = offs == undefined ? 0 : offs; array.length > i; i++ ) {
    if( array[i]==find ) {return i}
    return -1;
    function getScriptPath() {
    // This function returns the path to the active script, even when running ESTK
    try {
    return app.activeScript;
    } catch(e) {
    return File(e.fileName);
    } // end try
    } // end getScriptPath
    } // end insertDTs

    It uses CS2-style searching is the most obvious problem.
    Try putting it in a folder named "Version 4.0 Scripts" -- without the quotes -- and run it from there.
    Dave

  • 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'.

  • Cannot move any files into trash to delete them. I get a Trash warning box saying "The Finder cannot complete the operation because some data in 'file name' could not be read or written.(Error code - 36)".Macbook has so much data it is almost not working

    Cannot move any files into trash to delete them. I get a Trash warning box saying "The Finder cannot complete the operation because some data in 'file name' could not be read or written.(Error code - 36)".Macbook has so much data it is almost not working.
    I have tried reseting to factory settings by removing battery and holding down the power switch for more than 5 sec but this does nothing.
    Any ideas would be greatly appreciated as I think with so much unwanted data on the desktop and other places the whole os will crash very soon.
    Thanks, Rick

    The hard drive may be dying anyway, or the directory damaged because it is so full.  You should never let the hard drive get over 85% full.
    A -36 error is a read/write error.
    All you did with the power is reset the SMC.  Does nothing to reset everything to factory settings. 
    Do you have your original 10.4 installer discs for the MacBook?
    Is your data backed up?

  • 10.5 will not let me add album name. itunes stops working and shuts down

    10.5 will not let me add album name. itunes stops working and shuts down.

    I am having this problem.  At first with the new iPhone 5, and then with the iPad 2.  I am not sure why this is happening. 
    My gut feeling is this is an iO6 issue and here's why -
    The problem mainly occurs with apps.  I have about 150 apps, and when I plugged in the phone, iTunes went to sync all of them.  The process would hang up after about 20 - 30 apps were loaded onto the phone. I could tell where about the process hung up because the apps on the phone showed up as "waiting".
    Then on the iPad 2 I plugged in to sync and saw there was a huge "Other" component in my storage.  It required me to restore the iPad 2 from backup.  With this restore the same issues occurred - putting the apps back on the iPad would hang up.  The videos on the iPad also got stuck - maybe after about 10 hours of videos transfered iTunes crashed.
    My solution has been to soft reset the device, restart Windows, and continue the process until it's complete.  This is remarkably inefficient and time-intensive but everything works with patience.
    I have been wondering if others have had these same problems. 

  • Help with add file name problem with Photoshop CS4

    Frustrating problem: Help with add file name problem with Photoshop CS4. What happens is this. When I am in PS CS4 or CS3 and run the following script it runs fine. When I am in Bridge and go to tools/photoshop/batch and run the same script it runs until it wants interaction with preference.rulerunits. How do I get it to quit doing this so I can run in batch mode? Any help is appreciated. HLower
    Script follows:
    // this script is another variation of the script addTimeStamp.js that is installed with PS7
    //Check if a document is open
    if ( documents.length > 0 )
    var originalRulerUnits = preferences.rulerUnits;
    preferences.rulerUnits = Units.INCHES;
    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 = "Lower© ";
    // 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 = 10;
    //Set font - use GetFontName.jsx to get exact name
    myTextRef.font = "Arial";
    //Set text colour in RGB values
    var newColor = new SolidColor();
    newColor.rgb.red = 0;
    newColor.rgb.green = 0;
    newColor.rgb.blue = 0;
    myTextRef.color = newColor;
    // Set the position of the text - percentages from left first, then from top.
    myTextRef.position = new Array( 10, 99);
    // 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!" );

    you might want to try the scripting forum howard:
    http://www.adobeforums.com/webx?13@@.ef7f2cb

  • How to add file name by sqlldr

    Hi All,
    Can anyone kindly give me an approach to use a variable in a sql loader ctl file. I am trying to add the value before each insert of row and this value is the file name. So the question is how can I dynamically identify the input data file name, if not, is there a way I can make my SQL Loader to insert a value (file name) before each row into the table.
    my control file like below ,
    LOAD DATA
    INTO TABLE "user"."AAA_BILL"
    APPEND
    REENABLE DISABLED_CONSTRAINTS
    EXCEPTIONS "USER"."AAA_BILL"
    FIELDS TERMINATED BY '|'
    (Streamnumber ,
    MSID ,
    UserName,
    Domain,
    UserIP ,
    Correlation_ID)and the loading script as below ,
    for j in $(GetFileNames)
    do
    let i=$i+1
    sqlldr user/pass control="/u01/ctrlfile/loadBILLDtl.ctl" log=$WiMAXlog$j.log data=$WiMAXsource$j   bad=$WiMAXlog$j.bad
    GetFileNames ()
    sqlplus -s user/pass << EOF
    set echo off
    SET FEEDBACK OFF
    SET heading off
    set pagesize 50000
    select bi_file_name from dbm_bill_head where bi_file_name like 'WiMAX_%' and bi_auto_status=35  order by bi_file_name;
    EOF
    }What I am trying to accomplish here is, I want to insert the data file name along with other data in the data file into table AAA_BILL and this table has the file name coloumn, but the data file does not contain the file name as one of its contents.
    Note : my DB is 10G and OS is RHEL
    any help please ,
    Edited by: 876602 on 18/12/2011 05:44 ص

    Hi,
    Now it is working just well.
    I kept 2 variables: one with the POSIX file path for my do shell script and another one (using the provided tip here) for the Applescript function.
    The only problem I had left was that teh file was writen in, maybe, UTF8 so I added to the open for access a "as text" at the end to make the file as straith text file.
    I always found languages like Applescript a little bit hard to learn. Strangely, I have less difficulty with Cocoa!
    Thanks for avery one here!

  • Re Trim file name scripts in SL

    Below is a frozen, unanswered conversation regarding the missing finder scripts in SL. Luckily, I make a complete backup before converting, so I still have all the old Leopard scripts. Norwichfan, I feel your pain, and I thought that archiving your thread without an adequate answer was wrong.
    Here's your answer. you can just get a copy of the old finder scripts, put them in /Library/Scripts and they'll show up in your script menu as before. I have zipped up a copy of them and posted them here:
    http://tedward.org/finder_scripts.zip
    norwichfan88
    Posts: 12
    From: Australia
    Registered: Mar 25, 2010
    Trim file name scripts in SL
    Posted: Mar 26, 2010 6:26 PM
    I have recently upgraded to SL and have found that the trim/add to file name applescripts from leopard are missing from my scripts menu.
    Is there a place I can find these for SL?
    MBP mid-2009 Mac OS X (10.6.2)
    Pierre L.
    Posts: 824
    From: Québec
    Registered: Jan 26, 2009
    Re: Trim file name scripts in SL
    Posted: Mar 26, 2010 6:49 PM in response to: norwichfan88
    Solved
    Maybe something similar in this web page?
    15-inch MacBook Pro 2.53 GHz Mac OS X (10.6.2) AirPort Extreme
    norwichfan88
    Posts: 12
    From: Australia
    Registered: Mar 25, 2010
    Re: Trim file name scripts in SL
    Posted: Apr 10, 2010 12:03 AM in response to: Pierre L.
    Thanks for the web page, had a look but not having done any work with applescript or other programming language was a bit over my head.
    I decided to make a temporary solution with and automator action.
    MBP mid-2009 Mac OS X (10.6.2)

    Thanks for the web page, had a look but not having done any work with applescript or other programming language was a bit over my head.
    I decided to make a temporary solution with and automator action.

  • OS 10.3.9 - Finder Scripts Not Working

    Greetings,
    Finder scripts on my work machine (specifically, Add to File Names and Add to Folder Names) are not working. I have the Script icon in the toolbar, activate the drop-down menu, go to Finder Scripts, and click on the one I want to use, and fill out the info, but none of the highlighted file/folder names are changed when the script finishes. For what it's worth, Folder Actions are turned "On" across the system (not sure this affects Finder Scripts like these).
    Also, my User Account is on the server, if that makes a difference. When I select the "Open Scripts Folder," it takes me to: Administrator's Computer/Macintosh HD/Domain/<Server Name>/Users/<User Name>/Library/Scripts. The folder at this location is empty. Turns out the scripts are actually stored at: Macintosh HD/Library/Scripts, which is the location from where the toolbar's drop-down menu appears to be accessing. Is this difference the culprit? Any solutions?
    Thanks kindly for any help.

    Hi,
    I had a similar problem with Logic 7.0. The MT4 seemed to be ok if I reinstalled the old mt4 drivers from the emagic website and then reset the mac, but in the end, I had to do this everytime I booted up the computer.
    It maybe a software related. The situation became so drastic that I ended up reinstalling panther on my mac and it all worked fine from then on. I haven't a clue why.
    I've not had ever had a repeat of these issues.
    Thanks,
    Andy

  • Add File Name to Output

    Is it possbile to add the file name variable to topics after they are created without having to manually insert the variable?
    Upon inserting the variable, format is thus:
    <variable name=file x-format=default x-value=0001.htm>0001.htm</variable>
    The x-value and text are plugged in automagically upon insertion.
    Is there a simple variable code that will pulls these values in?
    My ultimate need is to be able to print topics and include the file name. I could use Title just as well.
    A report would work, if the report included the topic text.

    OK, got it. The file name iws not updated until the file is closed and opened.
    I will add the variableto the topics in question.

Maybe you are looking for

  • IBook Shuts Down When Try To Wake From Sleep

    I have an iBook 300 that will work perfectly fine while you use it. When you put it to sleep, it sleeps normally, but when I try to wake it the sleep light goes out, nothing shows on screen, I can hear the hard drive spinning and then it shuts down.

  • Itunes damaged library file

    My itunes has been working reasonably well but I have had many issues with it crashing over the last year or so.  I just got a Sonos device and after having problems with indexing my songs the support guy looked through my itunes folder with me and w

  • I didn't get my refund

    I requested a refund from itunes and got  an email saying that they issued my refund. But it's been 24hours and the money has not been put back on my credit card. And yes I did pay with my credit card. Does anyone have a solution to my problem.

  • Urgetn .........Getting an error on inputfield

    hi, I have a inputfield in my application and i attached a context of type integer to that,but when i entered character into that field it is showing an error in some other language i want to display that in Normal English language.Pls help me .....i

  • JDeveloper and MySQL

    A MySQL Connection works fine in the IDE, for example when i test the connection, expand the tree-view or use the sql-sheet to edit the tables. But when i run a module that uses this connection, i get the error "no suitable driver ###-26061", just af