AppleScript for Batch Title Changes Needed

I need to change the title of 75 items in a folder on my G5 by one character. Help says there's a Script Menu in the Finder bar, but I suspect the Help is for Tiger & I have Panther, and there is no such option. I only have Script Editor.
Would anyone be willing to provide an AppleScript for batch title changes so I can make the needed change? I'm not a programmer. Secondly, how do I activate the script?
David

Jeff,
Thanks for your reply. In Example Scripts/Finder Scripts, I see Replace Text in Item Names.scpt. I'm thinking this is the script I need. Not so?
Can you recommend a resource that would tell me how to fill in the blanks? Apple refers to Getting Started With AppleScript, but I don't see it as an available PDF file. AppleScript Language Guide is available, but all I really want is something simple, very basic.

Similar Messages

  • Batch title change in photo version 1

    The new "Photo" has changed the user interface completely.  Is there a way to to the "batch title change" for a group of photos?  There are instructions for how to do for one, but I'm hoping that this has not been lost.  I'm using version 1.
    Is there any way to remove the conformation that is now required each and every time you want to delete a photo or group of photos? 
    Thanks,
    DMW

    Batch changing is not yet supported in Photos for Mac.
    You could try to do it using AppleScript and Automator.
    I posted a few scripts on the Photos User Tips page:
    See:  Photos for Mac
    Batch Changes in Photos for Mac:  Change the titles to a Given String
    Photos for Mac: Batch Change the Date and Time to a Fixed Date
    Photos for Mac: Batch Change the Descriptions

  • Photos app - Batch title change/add

    In iPhoto one of the first things I'd do after importing was set the title of the images to the event name by batch rename, so I'd end up with pics by year, by event named and numbered. In Photos app how can you batch change the title or batch add a title? That ability seems to have been removed. (Also why on earth does clicking on the year bring up a map instead of the pics from that year....not my main question, just a gripe )

    Batch changing is not yet supported in Photos for Mac.
    You could try to do it using AppleScript and Automator.
    I posted a few scripts on the Photos User Tips page:
    See:  Photos for Mac
    Batch Changes in Photos for Mac:  Change the titles to a Given String
    Photos for Mac: Batch Change the Date and Time to a Fixed Date
    Photos for Mac: Batch Change the Descriptions

  • Newbie--AppleScript for InDesign CS5 help needed

    How can I select a page number in a table (a text string as a Source) and have an AppleScript read that text string and convert it to an integer value?
    I have to put over 1,200 hyperlinks into a document that already has page numbers in tables. Each page number (Source) will be assigned a hyperlink to go to that page (Destination).
    The page numbers in tables are in the preface to my document, which is 44 pages in length.
    The actual pages in the main body of my document are numbered 1-432. Thus, the 45th page in the document is Page 1 to the person reading it, and the 476th page is Page 432.
    So if a table in my preface has a page number of 32, for instance, the actual page number I want as a Destination is 32 + 44, or page 76.
    If I manually double-click to select the text of a number "x" in a table as a Source, I want to write a script that when invoked will
    • read the text string I have selected
    • convert it to an integer value equal to the number in the text string
    • add 44 to that value
    • create a hyperlink that goes to the destination page number that corresponds to that value
    Thanks.

    Hi WheatWilliams,
    Something like this, then:
    tell application "Adobe InDesign CS5"
    set myTextObjects to {text, character, word, text style range, line, paragraph, text column, cell, table, row, column}
    if (count documents) is greater than 0 then
    set mySelection to selection
    if (count mySelection) is equal to 1 then
    tell document 1
    --Is the selection a text selection?
    if class of item 1 of mySelection is in myTextObjects then
    set myText to item 1 of mySelection
    try
    set myErrorString to "Selection already contains a hyperlink text source."
    --Create the hyperlink text source.
    set myHyperlinkTextSource to make hyperlink text source with properties {source text:myText}
    set myPageNumber to item 1 of mySelection as integer
    set myPageNumber to myPageNumber + 44
    set myErrorString to "Could not get page number."
    set myPage to page myPageNumber
    set myErrorString to "Could not create hyperlink page destination."
    --Create they hyperlink page destination.
    set myHyperlinkPageDestination to make hyperlink page destination with properties {destination page:myPage}
    set view percentage of myHyperlinkPageDestination to 100
    --Now use the source and the destination to create the hyperlink.
    set myErrorString to "Could not create hyperlink."
    set myHyperlink to make hyperlink with properties {source:myHyperlinkTextSource, destination:myHyperlinkPageDestination}
    set myErrorString to "Cound not format hyperlink."
    --Apply formatting to the hyperlink (could be done in the properties record, above).
    set visible of myHyperlink to true
    set border color of myHyperlink to blue
    set border style of myHyperlink to solid
    on error
    display dialog myErrorString
    end try
    end if
    end tell
    end if
    end if
    end tell
    Thanks,
    Ole

  • How to run Excel 2011 from applescript for batch

    Every night at 2:00am, I want to convert an Excel spreadsheet to CSV.  I'm doing this on a Mac, with Excel 2011.  The following Applescript works sometimes:
    tell application "Microsoft Excel"
              open "/Users/siemsen/PetesLookup/BPO.inventory.current.xls"
              save active workbook in "BPO.inventory.current.csv" as CSV file format
      close workbook 1 saving no
      quit
    end tell
    With the above script saved in a file named convert.scpt, I can execute it from a bash script using the command "osascript convert.scpt".  The bash script runs in a launchd job at 2:00am every day.
    It works if Excel is already running on the Mac at the time the cron job runs.  If not, it starts Excel, which insists on displaynig a "Excel Workbook Gallery" dialog box.  No one is present on the Mac at the time, so no one clicks on the "Cancel" in the dialog box, so the Applescript times out and the cron job fails.
    How do I get around this?  Can I somehow start Excel without the **** "Excel Workbook Gallery" dialog?  Is there some other trick that will allow the job to run unattended?

    In Excel preferences (general tab) uncheck the checkbox that says "Open Project Gallery when application opens".  that should remove the startup dialog.

  • What is the field and Table for "Batch Class" and "Class Type" in QM.

    Hi All,
    What is the field and Table for "Batch Class" and "Class Type" in QM.
    Thanks,

    Hi,
      For batch class the class type value is '023' . This you can find from KLAH table and the fileld for class type is KLART..
    And also all the data related to batch class are found in tables INOB, KLAH,KKSK and for the characeteristics of batch materials you can refer AUSP table.
    In INOB table, for batch class, you need to give 023 in KLART field and  value MCH1 in OBTAB filed.
    Please check this and let me know if this you need any more details?

  • Web Dynpro Java timesheet to Web Dynpro ABAP timesheet  what changes needs to be done from EP side

    Hi All,
    We are moving Web Dynpro Java timesheet to Web Dynpro ABAP timesheet.
    what changes needs to be done from EP side?
    I have made Web Dynpro ABAP iView calling Web Dynpro ABAP timesheet and linked it with page.
    But It is showing an error 'Web Dynpro Application CATDATARECORD does not exist'.
    Please suggest what other changes needs to be done.

    Hi Anurag,
    I have added new Web Dynpro ABAP iView to the same page in which Web Dynpro JAVA iview was added and made ABAP iview visible.
    And this page is already assigned to role.
    How should I link this ABAP iview so that it get replace by the Web Dynpro JAVA iview.
    And the  application name (CATDATARECORD) is correct and Web Dynpro JAVA is using the same application.
    But now we want new time timesheet for that what changes needs to be done?
    Please suggest.

  • Looking for a howto for an applescript to batch convert PPTS to Keynote...

    Looking for a howto for an applescript to batch convert PPTS to Keynote...
    Hi to group!
    (cross posted this a couple of weeks ago to Keynote forum, no responses) Perhaps the query really belongs here...)
    (I) Have a whole bunch of PPTs to convert to Keynote, now and more as time goes on.
    Looked into applescript to try to automate this a bit (could open PPT file but did not see any way to 'Save' file from a script).
    Also looked into bash scripting/automator too -- way too many options to choose from. Help!
    Anybody done anything similar to this already?
    TIA for pointers. //GH

    A word of caution.
    I have not tried the workflow before.
    I am not an applescript expert.
    These steps were quickly composed using my basic knowledge in Applescript
    What I was planning was to create a script droplet that when a ppt file is dropped upon it, it extracts the name of the file and sets it to a variable to name the keynote file later. You might have to modify it a bit to batch process multiple files.
    Try going through batch processing scripts made for quark or Adobe photoshop ( Not sure if these exist on internet) to see how they have implemented the steps in applescript.
    To GUI Script Keynote, do these steps...
    All the code has to go in here
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">activate application "Keynote.app"
    tell application "System Events"
       tell process "Keynote"
          -- insert GUI Scripting statements here
       end tell
    end tell
    </pre>
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">click menu item "Export…"  of menu 1 of menu bar item "File"  of menu bar 1</pre>
    This will click the next.. button provided the default export type is set to PPT
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">click button 2 of sheet 1 of window 2
    </pre>
    This will click the Export button on the next window
    click button 1 of sheet 1 of window 2
    This piece of code can be used to set the name of the ppt file using the extracted name in the first step
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">set value of text field 1 of sheet 1 of window 2 to "<string>"
    </pre>
    May be there is a better way out there.
    Thanks for red_menace for his Script formatter script
    Message was edited by: dj9027

  • Help Needed: Automator Applescript for Folder Action - Encode Video

    Hi !
    I have created an Automator Applescript for a Folder Action to do the following:
    When a new video file is moved to the target folder (i.e. Download of Vuze is done), automatically launch the Applescript Action that does the followin g(Applescripted):
    1) Using "run shell script" and FFMPEG on a UNIX command line, determine Width/Height, Framerate, Bitrate
    2) Calculate encoding parameters (slightly reduced bitrate, reduced Aspect etc.)
    3) Using "run shell script" with ffmpeg on the command line and the calculated parameters to encode the video file
    At the same time, the action is written to a log file so I know if a file is recognized, when encoding started etc.
    It works fine if I save this Action as an .app, make an alias on the Desktop and drop video files on it.
    It also works fine if I attach the script to a folder as a folder action and drag a video file in there.
    However, when I attach the script as a folder action to the Vuze download folder, it encodes only some video files, i.e. if there was a download of 5 files, chances are good that it will not encode 1 or 2 files out of those 5.
    If for example a second download finishes while the encoding for the first download is still going on, sometimes the second file starts encoding after the first encode finishes, sometimes it does not, the file does not make the log file at all, i.e. the folder action missed it or the automator action dropped it because it was still encoding. Still, sometimes it happens, sometimes not.
    As I need a solution that is 100% accurate, I would like to ask if there are any ideas on how to do this better maybe? As I am not an Applescript Guru, I would need some help to know what works and what doesn't and what the syntax is.
    My main idea right now:
    Similar to how ffmpegX works with its "process" application, have a second script (as .app) that receives the files to be encoded from the automator action and puts them in a queue, then proceeds to encode this queue while the main automator action is free to receive the next file.
    Writing this second app is quite straightforward (a modified version of my current script) but I have some questions I need help with:
    1) How do I call another applescript from within an existing applescript that launches the new applescript in a new process?
    2) How do I pass parameters to this new applescript?
    3) In case of this "Queueing" Idea, once I called the external applescript the first time, how do I make sure when I call next time, that I don't open a second instance of this script but rather pass another queue item to the original instance to be processed?
    Or in general: Is there a better way to achieve this automatic encoding solution that I have not thought about?
    Alternatively:
    Does anyone know how to call the "process" application that comes with the ffmpegX package with the correct parameters to use as a queueing / processing tool?
    Thanks!
    Joe
    Message was edited by: Joe15000
    Message was edited by: Joe15000

    To do this, I created an Automator workflow with an Applescript snippet to change the 'media kind'.
    Here is the 'Run Applescript' workflow step code:
    on run {input, parameters}
              tell application "iTunes"
                        set video kind of (item 1 of input) to movie
              end tell
              return input
    end run
    Prior to this running, I have an 'Import Files into iTunes' workflow step.
    You can switch out 'movie' with: 'TV show', 'music video', or anything in ITLibMediaItemMediaKind.
    Good luck,
    Glenn

  • Oracle Retail standard file format for batches - specification needed

    Is there any accurate specification of Oracle Retail standard file format for batches, such as EdiUpcat.pc (possibly with examples)?
    I am trying to produce a file with supplier cost changes for Cost Change Batch (ediupcat.pc).
    In "Operations Guide - Batch Overviews and Designs - Volume 1" I found some brief description, though it is not clear to me
    1) what should I do with empty values (obviously, pad with appropriate number of spaces?)
    2) What if some string value has less characters than specified? Should I left-pad or right-pad?
    3) What does Number(12,4) means? How many characters exactly? 17? Why then values in some fields are multiplied by 10000 (so that to obtain integer value) while in others they go in Number(12,4) notation?

    Hi Roman,
    I am glad to be of help.
    Try to see it like this:
    A number 20 is of char-length 20 in a flatfile, and the value is what it is 1:1.
    A number 12,4 is of char-length 12 in a flatfile, but needs to be divided by 10^4 (10000) to get its real value.
    Indeed there is a funny asymmetry in the documentation how the decimals are handled - but we needed to read carefully already anyhow... :)
    I always like to construct a file by hand in an editor (vi, whatever) and then run it through the program, and check the errors in the error file.
    Good luck and best regards,
    Erik
    Edited by: ErikYkema on Oct 13, 2011 3:01 PM

  • Need help converting old Applescript for Snow Leopard

    Ok, so I've downloaded the app "PowerHour" for mac. It needs to use the date function which is different in Snow Leopard, so I've heard. I don't program in Apple Script so I can't figure out what syntax to use. Can anyone help me fix this code below?
    I'm trying to code this because I don't think the original developer has any hand in this program anymore.
    The app on macupdate: http://www.macupdate.com/app/mac/24107/power-hour
    Here's the part that is giving the errors:
    set gameLengthAsDate to (date (zeroTime)) + (enteredMinutes * minutes)
    set songLengthAsDate to date (songLength)
    set gameStart to current date
    set songStart to gameStart
    set gameEnd to gameStart + (time of gameLengthAsDate)
    set songEnd to songStart + (time of songLengthAsDate)

    AppleScript in Snow Leopard is a bit pickier about specifying dates. From the AppleScript Release Notes, "the [date] string must exactly match one of the system date formats".
    It looks like the script is using a shortcut to set the time of the current date. I didn't test a modified application (just that the script statements set a valid date), but you might give the following a try:
    1) change the following properties (declared at the beginning of the script)property zeroTime : 0
    property songLength : 60
    2) change the statements that set the time toset gameLengthAsDate to (current date)
    set time of gameLengthAsDate to zeroTime + (enteredMinutes * minutes)
    set songLengthAsDate to (current date)
    set time of songLengthAsDate to songLength

  • Need Report for batch wise consuption

    i need the coding (program) for batch wise consuption report,,,
    output fields are
    Posting date, batch number, quantity, mfg date, exp date, next inspec date, order no(po) , product name, batch no quanty issue.
    i want the logic after retriving the data from MSEG table with moment types 101,102,261,262,201,202.
      that i should cancle the record of movement type 102 from 101
    regards
    mukesh

    HI Siva,
    Thanks for quick reply. Yeah, in S_ALR_87013047 i can compare only two materials. but i am looking for a report for group of materials for forecasting. Can we create acustomised report for this.
    Please let me know.
    Thanks
    vamshi

  • How to change the transition time for a title in the new imovie

    With the new update I have lost how to do a simple task.
    I have titles in the lower left hand corner ine a video (pictured below). I would like for the titles to change seamlessly, without blinking after each new title appears. Sort of like a digital clock ticking. So say there's a video clip for each day in August, I want the date to change without blinking and re-appearing each time. This was easy in the past version of imovie. But I can't seem to find it in this version.
    Any help would be greatly appreciated!
    The red box indicates that I have attempted to merge the title into the title that comes after to see if it blends the transition, but it still blinks before showing the new title.
    Movie Version 10.0

    Please take a look at the usage of the precision editor it's very powerfull as are a lot of functions in iMovie10.
    http://help.apple.com/imovie/mac/10.0/#movf8b8fc9b2
    (I hope it directs you to the English version). And of course I asume you have the latest version (10.0.3) which solves al ot of the earlier problems.
    In case you understand some Dutch. I've produced a number of video-tutorials on the usage of iMovie10.
    http://www.videoidee.nl/iMovie/imovieindex.html
    Part 5 2nd half explains the usage of the precision editor in detail.
    If you don't follow my Dutch, google for iMovie10 tutorials  and you will find lot's of video-tutorials in English.
    Have Fun
    Ben

  • STZBC table need to be updated correctly for DST Brazil Change.

    Hi All,
                          STZBC table need to be updated correctly for DST Brazil Change.
    I see two options to change it:
    1) Create a new line for 2009 in STZBC -> Variable time zone rule in DT1 and create the transport
    2) Apply SAP Note 198411 (attached) in DT1 and create the transport
    I have have concern for daylight saving as according to Note 1251372 there is no standard daylight saving time in brazil .
    this note mention daylight saving for  2008/2009 (i,e daylight saving time in Brazil begins on October 19, 2008 and ends on February 15, 2009.) and this note is the latest note available.
    what would be daylight saving time in brazil for year 2009/2010? should i need to raise message to SAP asking for any new note applicable to daylight saving?
    Thanks for your help in advance.
    Thanks&Regards
    Shams

    done

  • Hello, I've got a Upgrade-Version of CS5.5 for Windows and changed to a Mac. Now I need the Mac-Version. I tried to install the Download from Adobe. Unfortunatly it didn't accept my password. I guess cause of the Upgrade-Version or the Windows Version I o

    Hello, I've got a Upgrade-Version of CS5.5 for Windows and changed to a Mac. Now I need the Mac-Version. I tried to install the Download from Adobe. Unfortunatly it didn't accept my password. I guess cause of the Upgrade-Version or the Windows Version I own. My System: Mac OS X 10.6.8, 2,8 GHz. Thanks for answers! Greetings, Eva

    Here is a link to the info regarding platform swaps.
    Order product | Platform, language swap
    If you want to try to contact Adobe support to try to get an exception, Start Here  after selecting relevant responses choose "Still need help? Contact us." and the chat contact (or phone) option.

Maybe you are looking for

  • W-7 XP Mode and 32 bits LPT1 printers

    This XP virtual mode is from a W-7 Ultimate 64bits and works well with a couple of 32bits devices, one of them a photo or slides scanner for digital conversion, and others 32bits programs. My system is a Lenovo Laptop TP61p with a mini dock where I h

  • Create vendor in ERP R/3 with internal number range

    HI, When I create a new vendor from MDM in R/3 with internal number range ADRMAS is processed OK but CREMDM is in status 51 because of missing address data. According to sap note  1052964 (se below) ADRMAS must be the first IDOC and it should contain

  • When sending attachments in Gmail in FF, my internet connection breaks

    When I try to send an attachment of any type in gmail in Firefox as a browser the attempt stalls, fails and then my internet connection breaks. I've googled this and no one else seems to have this issue. It seems local to my desktop and I've reinstal

  • SCOM only monitoring disk space of a group of servers

    I have been looking for a way to setup SCOM to ONLY monitor the disk space on a specific group of servers.  We have a sandbox environment that consists of approximately 100 servers.  The only responsibility we have is to make sure these machines are

  • Windows 7 boot problems after partitioning Mac Disc

    Hi I got a big Problem. I installed Windows 7 with Bootcamp. I have a 600Gb Mac Partition and a 150Gb Bootcamp Partition. After Configuring Windows, I switched to the Mac OSX Snow Leopard System. I changed the Main Partition of 600Gb into 3 smaller o