Change on input to cater for single and multiple files?

This script currently allows me to drop a single file on to the droplet and it processes it, I would like to be able to drop 1 or more items on it at the same time.
How can I get it to do all that are dropped on the droplet please?
Matt
property type_list : {"8BPS"}
property extension_list : {"psd"}
script o
          property theseNames : {}
end script
on open this_item
          set thefile to this_item as text
          tell application "Finder" to set TheName to (name of file thefile) --> the name
          set the1stLetter to the first character of TheName --> the first letter
          set the2ndLetter to the second character of TheName --> the first letter
          set brandInitial to {the1stLetter, the2ndLetter} as text
          if brandInitial is equal to "BH" then ¬
                    set brandName to "BH"
          if brandInitial is equal to "AL" then ¬
                    set brandName to "BH"
          if brandInitial is equal to "SM" then ¬
                    set brandName to "BH"
          if brandInitial is equal to "BU" then ¬
                    set brandName to "Bu"
          if brandInitial is equal to "ES" then ¬
                    set brandName to "Dai"
          if brandInitial is equal to "DV" then ¬
                    set brandName to "DIV"
          if brandInitial is equal to "DJ" then ¬
                    set brandName to "Dons"
          if brandInitial is equal to "RA" then ¬
                    set brandName to "Dons"
          if brandInitial is equal to "FR" then ¬
                    set brandName to "Free"
          if brandInitial is equal to "GT" then ¬
                    set brandName to "Inter"
          if brandInitial is equal to "CW" then ¬
                    set brandName to "Inter"
          if brandInitial is equal to "MA" then ¬
                    set brandName to "Mata"
          if brandInitial is equal to "MC" then ¬
                    set brandName to "Mata"
          if brandInitial is equal to "FI" then ¬
                    set brandName to "Mata"
          if brandInitial is equal to "MF" then ¬
                    set brandName to "Mata"
          if brandInitial is equal to "MB" then ¬
                    set brandName to "Mata"
          if brandInitial is equal to "MH" then ¬
                    set brandName to "Mata"
          if brandInitial is equal to "NN" then ¬
                    set brandName to "Nord
          if brandInitial is equal to "TM" then ¬
                    set brandName to "Top"
          if brandInitial is equal to "WA" then ¬
                    set brandName to "Wallis"
          if brandInitial is equal to "PR" then ¬
                    set brandName to "Press"
          set weekNumber to ""
          display dialog "Please enter the week number:" default answer weekNumber
          set weekNumber to text returned of result
          try
                    if weekNumber = "" then error
                    set theWeekNumber to theWeekNumber as number
          on error
                    set thePrefix to "INVALID ENTRY! "
          end try
  --Folder location Setup
          set this_local_folder to "Images:2012-2013"
          set localWeekFolder to my getFolderPath("WK" & weekNumber, this_local_folder)
          set localBrandFolder to my getFolderPath(brandName, localWeekFolder)
          set localBrandFolder_PSD to my getFolderPath(brandName & "_WK" & weekNumber & "_PSD", localBrandFolder)
          set this_Network_folder to "DCKGEN:Brands:Zoom:Brand - Zoom:Upload Photos:2013:"
          set networkWeekFolder to my getFolderPath("Week" & weekNumber, this_Network_folder)
          set networkBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", networkWeekFolder)
  --all files for website
          set website_images to "DCKGEN:Website_Images:"
  --set up names to destination folders and create over Network for FTP collection (based on a mounted drive)
          set this_ftp_folder to "Impulse:"
          set ftpWeekFolder to my getFolderPath("Week" & weekNumber, this_ftp_folder)
          set ftpBrandFolder to my getFolderPath(brandName, ftpWeekFolder)
          set ftpBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", ftpBrandFolder)
          set ftpBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", ftpBrandFolder)
  --set theFolder to eachItem as string -- I think this is the line that could be causing the problem.
  --taking the folder identify which process it must follow.
          if brandName is equal to "BH" then
                    tell application "Adobe Photoshop CS5.1"
  -- I remove the command activate, Photoshop stay in background
                              set ruler units of settings to pixel units
                              try
  open (alias thefile) showing dialogs never
                                        set origName to name of current document
                                        set myOptions to {class:JPEG save options, quality:12}
                                        set myPSDOptions to {class:Photoshop save options, embed color profile:true, save layers:true}
                                        tell current document
  --If the quick mask mode has been left on then delete the channel Quick Mask
                                                  if (quick mask mode) then delete channel ¬
                                                            "Quick Mask"
  --If the Layer is incorrectly labeled with Original Layer it needs renaming to original Image
                                                  if (exists layer "Original Layer") then ¬
                                                            tell layer "Original Layer" to set name to "Original Image"
  save in (localBrandFolder_PSD & origName) as Photoshop format with options myPSDOptions without copying
                                                  (delete layer "Original Image") flatten
  resize image resolution 300 resample method none
  --sharpen image
  filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
  save in (ftpBrandFolder_High_Res & name) as JPEG with options myOptions without copying
  --get file path, return path of the JPEG file, work with (without copying)
  -- (with copying) : it return path of PSD file
                                                  set newFile to file path --( return path of type alias )
  -- duplicate file using the Finder  -->on duplicateFile(..)
                                                  my duplicateFile(newFile, {ftpBrandFolder_High_Res})
  --Prepare for Low RES by resetting image history
                                                  set current history state to history state 3
  flatten
  resize image width 1348
  resize image resolution 300 resample method none
  filter current layer using unsharp mask with options {amount:50, radius:3.2, threshold:0}
  --add save to lowResFolder with same options
  save in (networkBrandFolder_Low_Res & name) as JPEG with options myOptions without copying
                                                  set newFile to file path
                                                  set newFile2 to newFile as string -- for testing end of name
                                                  if newFile2 ends with "_2.jpg" or newFile2 ends with "_3.jpg" or newFile2 ends with "_4.jpg" or newFile2 ends with "_5.jpg" or newFile2 ends with "_6.jpg" or newFile2 ends with "_7.jpg" or newFile2 ends with "_8.jpg" or newFile2 ends with "_9.jpg" or newFile2 ends with "_10.jpg" or newFile2 ends with "_11.jpg" then -- exclude website_images
                                                            my duplicateFile(newFile, {ftpBrandFolder_Low_Res})
                                                  else
                                                            my duplicateFile(newFile, {ftpBrandFolder_Low_Res, website_images})
                                                  end if
  close saving no
                                        end tell
                              end try
                              do shell script "afplay /System/Library/Sounds/Glass.aiff"
                              tell application "System Events"
                                        tell application processes
  key code 28 using {command down, option down, shift down}
                                                  delay 0.05
  key code 28 using {command down, option down, shift down}
                                        end tell
                              end tell
                    end tell
  --End BH
  --taking the folder identify which process it must follow. B U
          else if brandName is equal to "Bur" then
  --    B U R    Folder Photoshop Process
          else if brandName is equal to "Press" then
  --    P R E S S     Folder Photoshop Process
--Do some photoshop stuff
  --End P R E S S
          end if
end open
--then the next etc.
on duplicateFile(tFile, foldersPath) -- tFile is an alias, foldersPath is a list of folder
          tell application "Finder" to repeat with folderPath in foldersPath
                    with timeout of 200 seconds -- adjust it,  error if the copy  is longer that 200 seconds
  duplicate tFile to folder folderPath with replacing
                    end timeout
          end repeat
end duplicateFile
on getFolderPath(tName, folderPath)
          tell application "Finder" to tell folder folderPath
                    if not (exists folder tName) then
                              return (make new folder at it with properties {name:tName}) as string
                    else
                              return (folder tName) as string
                    end if
          end tell
end getFolderPath

here is the whole thing I tried shortening the script to post I think thats how the " got dropped
property type_list : {"8BPS"}
property extension_list : {"psd"}
script o
          property theseNames : {}
end script
on process(this_item)
          set thefile to this_item as text
          tell application "Finder" to set TheName to (name of file thefile) --> the name
          set the1stLetter to the first character of TheName --> the first letter
          set the2ndLetter to the second character of TheName --> the first letter
          set brandInitial to {the1stLetter, the2ndLetter} as text
          if brandInitial is equal to "BH" then ¬
                    set brandName to "BHS"
          if brandInitial is equal to "AL" then ¬
                    set brandName to "BHS"
          if brandInitial is equal to "SM" then ¬
                    set brandName to "BHS"
          if brandInitial is equal to "BU" then ¬
                    set brandName to "Burton"
          if brandInitial is equal to "ES" then ¬
                    set brandName to "DaisyAndEve"
          if brandInitial is equal to "DV" then ¬
                    set brandName to "DIVA"
          if brandInitial is equal to "DJ" then ¬
                    set brandName to "DorothyPerkins"
          if brandInitial is equal to "RA" then ¬
                    set brandName to "DorothyPerkins"
          if brandInitial is equal to "FR" then ¬
                    set brandName to "Freedom"
          if brandInitial is equal to "GT" then ¬
                    set brandName to "International"
          if brandInitial is equal to "CW" then ¬
                    set brandName to "International"
          if brandInitial is equal to "MA" then ¬
                    set brandName to "Matalan"
          if brandInitial is equal to "MC" then ¬
                    set brandName to "Matalan"
          if brandInitial is equal to "FI" then ¬
                    set brandName to "Matalan"
          if brandInitial is equal to "MF" then ¬
                    set brandName to "Matalan"
          if brandInitial is equal to "MB" then ¬
                    set brandName to "Matalan"
          if brandInitial is equal to "MH" then ¬
                    set brandName to "Matalan"
          if brandInitial is equal to "NN" then ¬
                    set brandName to "Nordstrom"
          if brandInitial is equal to "TM" then ¬
                    set brandName to "TopMan"
          if brandInitial is equal to "AL" then ¬
                    set brandName to "BHS"
          if brandInitial is equal to "WA" then ¬
                    set brandName to "Wallis"
          if brandInitial is equal to "PR" then ¬
                    set brandName to "Press"
          set weekNumber to ""
          display dialog "Please enter the week number:" default answer weekNumber
          set weekNumber to text returned of result
          try
                    if weekNumber = "" then error
                    set theWeekNumber to theWeekNumber as number
          on error
                    set thePrefix to "INVALID ENTRY! "
          end try
  --Folder location Setup
          set this_local_folder to "Images:2012-2013"
          set localWeekFolder to my getFolderPath("WK" & weekNumber, this_local_folder)
          set localBrandFolder to my getFolderPath(brandName, localWeekFolder)
          set localBrandFolder_PSD to my getFolderPath(brandName & "_WK" & weekNumber & "_PSD", localBrandFolder)
          set this_Network_folder to "DCKGEN:Brands:Zoom:Brand - Zoom:Upload Photos:2013:"
          set networkWeekFolder to my getFolderPath("Week" & weekNumber, this_Network_folder)
          set networkBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", networkWeekFolder)
  --all files for website
          set website_images to "DCKGEN:Website_Images:"
  --set up names to destination folders and create over Network for FTP collection (based on a mounted drive)
          set this_ftp_folder to "Impulse:"
          set ftpWeekFolder to my getFolderPath("Week" & weekNumber, this_ftp_folder)
          set ftpBrandFolder to my getFolderPath(brandName, ftpWeekFolder)
          set ftpBrandFolder_Low_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_LR", ftpBrandFolder)
          set ftpBrandFolder_High_Res to my getFolderPath(brandName & "_WK" & weekNumber & "_HR", ftpBrandFolder)
  --set theFolder to eachItem as string -- I think this is the line that could be causing the problem.
  --taking the folder identify which process it must follow.
          if brandName is equal to "BHS" then
                    tell application "Adobe Photoshop CS5.1"
  -- I remove the command activate, Photoshop stay in background
                              set ruler units of settings to pixel units
                              try
  open (alias thefile) showing dialogs never
                                        set origName to name of current document
                                        set myOptions to {class:JPEG save options, quality:12}
                                        set myPSDOptions to {class:Photoshop save options, embed color profile:true, save layers:true}
                                        tell current document
  --If the quick mask mode has been left on then delete the channel Quick Mask
                                                  if (quick mask mode) then delete channel ¬
                                                            "Quick Mask"
  --If the Layer is incorrectly labeled with Original Layer it needs renaming to original Image
                                                  if (exists layer "Original Layer") then ¬
                                                            tell layer "Original Layer" to set name to "Original Image"
  save in (localBrandFolder_PSD & origName) as Photoshop format with options myPSDOptions without copying
                                                  (delete layer "Original Image") flatten
  resize image resolution 300 resample method none
  --sharpen image
  filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
  save in (ftpBrandFolder_High_Res & name) as JPEG with options myOptions without copying
  --get file path, return path of the JPEG file, work with (without copying)
  -- (with copying) : it return path of PSD file
                                                  set newFile to file path --( return path of type alias )
  -- duplicate file using the Finder  -->on duplicateFile(..)
                                                  my duplicateFile(newFile, {ftpBrandFolder_High_Res})
  --Prepare for Low RES by resetting image history
                                                  set current history state to history state 3
  flatten
  resize image width 1348
  resize image resolution 300 resample method none
  filter current layer using unsharp mask with options {amount:50, radius:3.2, threshold:0}
  --add save to lowResFolder with same options
  save in (networkBrandFolder_Low_Res & name) as JPEG with options myOptions without copying
                                                  set newFile to file path
                                                  set newFile2 to newFile as string -- for testing end of name
                                                  if newFile2 ends with "_2.jpg" or newFile2 ends with "_3.jpg" or newFile2 ends with "_4.jpg" or newFile2 ends with "_5.jpg" or newFile2 ends with "_6.jpg" or newFile2 ends with "_7.jpg" or newFile2 ends with "_8.jpg" or newFile2 ends with "_9.jpg" or newFile2 ends with "_10.jpg" or newFile2 ends with "_11.jpg" then -- exclude website_images
                                                            my duplicateFile(newFile, {ftpBrandFolder_Low_Res})
                                                  else
                                                            my duplicateFile(newFile, {ftpBrandFolder_Low_Res, website_images})
                                                  end if
  close saving no
                                        end tell
                              end try
                              do shell script "afplay /System/Library/Sounds/Glass.aiff"
                              tell application "System Events"
                                        tell application processes
  key code 28 using {command down, option down, shift down}
                                                  delay 0.05
  key code 28 using {command down, option down, shift down}
                                        end tell
                              end tell
                    end tell
  --End BH
  --taking the folder identify which process it must follow. B U R T O N
          else if brandName is equal to "Burton" then
  --    B U R T O N    Folder Photoshop Process
                    tell application "Adobe Photoshop CS5.1"
  -- I remove the command activate, Photoshop stay in background
                              set ruler units of settings to pixel units
                              try
  open (alias thefile) showing dialogs never
                                        set origName to name of current document
                                        set myOptions to {class:JPEG save options, quality:12}
                                        set myPSDOptions to {class:Photoshop save options, embed color profile:true, save layers:true}
                                        tell current document
  --If the quick mask mode has been left on then delete the channel Quick Mask
                                                  if (quick mask mode) then delete channel ¬
                                                            "Quick Mask"
  --If the Layer is incorrectly labeled with Original Layer it needs renaming to original Image
                                                  if (exists layer "Original Layer") then ¬
                                                            tell layer "Original Layer" to set name to "Original Image"
  save in (localBrandFolder_PSD & origName) as Photoshop format with options myPSDOptions without copying
                                                  (delete layer "Original Image") flatten
  resize image resolution 300 resample method none
  --sharpen image
  filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
  save in (ftpBrandFolder_High_Res & name) as JPEG with options myOptions without copying
  --get file path, return path of the JPEG file, work with (without copying)
  -- (with copying) : it return path of PSD file
                                                  set newFile to file path --( return path of type alias )
  -- duplicate file using the Finder  -->on duplicateFile(..)
                                                  my duplicateFile(newFile, {ftpBrandFolder_High_Res})
  --Prepare for Low RES by resetting image history
                                                  set current history state to history state 3
  flatten
  resize image width 1020
  resize image resolution 300 resample method none
  filter current layer using unsharp mask with options {amount:80, radius:3.2, threshold:0}
  --add save to lowResFolder with same options
  save in (networkBrandFolder_Low_Res & name) as JPEG with options myOptions without copying
                                                  set newFile to file path
                                                  set newFile2 to newFile as string -- for testing end of name
                                                  if newFile2 ends with "_2.jpg" or newFile2 ends with "_3.jpg" or newFile2 ends with "_4.jpg" or newFile2 ends with "_5.jpg" or newFile2 ends with "_6.jpg" or newFile2 ends with "_7.jpg" or newFile2 ends with "_8.jpg" or newFile2 ends with "_9.jpg" or newFile2 ends with "_10.jpg" or newFile2 ends with "_11.jpg" then -- exclude website_images
                                                            my duplicateFile(newFile, {ftpBrandFolder_Low_Res})
                                                  else
                                                            my duplicateFile(newFile, {ftpBrandFolder_Low_Res, website_images})
                                                  end if
  close saving no
                                        end tell
                              end try
                              do shell script "afplay /System/Library/Sounds/Glass.aiff"
                              tell application "System Events"
                                        tell application processes
  key code 28 using {command down, option down, shift down}
                                                  delay 0.05
  key code 28 using {command down, option down, shift down}
                                        end tell
                              end tell
                    end tell
  --End B U R T O N

Similar Messages

  • Merits and Demerits  in MM  Point of view for single and multiple CoCo

    Hello Gurus
    Please  let me know  , if what are all the merits & Demerits if we are going for Single company code in case of MM point of View and also what are all the merits and Demerits if we are going for multiple company code ....
    Rgds
    SAP!23

    Hi
    The number of company codes to be created is solely dependent on the business & legal entity's existing.
    There are no merits & demerits whcih decide the number of compny codes to be created....
    Thanks & Regards
    Kishore

  • How does one change the font size for folders and/or file lists in the Bookmarks Library?

    How does one change the font size for folders and/or file lists in the '''Bookmarks''' Library?
    Since the upgrade to version 9.0.1 of Firefox, the Bookmarks feature changes are confusing me. They seem to be confusing themselves as well. The list of bookmarks has changed. The font size is so small that my aging eyes cannot read it without fogging the screen with my breath. Some folders are out of alphabetical order (where I know they were previously good), and some are missing altogether (folders to which I frequently add references).
    As for missing or deranged files or folders, was there something that I should have done or now need to do to recover those after the upgrade (or before)?
    With regard to font size,
    1. there is no “Edit Bookmarks” or like option to edit the list in this version
    2. the “zoom” option in the “view” list of functions is greyed out when in “Show All Bookmarks” window
    3. expanding the browser window has no effect on font size
    4. “Preferences” settings for font size has no effect in that window either, including advanced settings
    5. “Help” offers none that I can find.
    Can any of you Help?!?

    Maybe this extension helps:
    *Theme Font & Size Changer: https://addons.mozilla.org/firefox/addon/theme-font-size-changer/

  • SAP Security Report for single and composite roles

    Hi
      I have a requirement to create a cutomize report in SAP Security.
    I have to display Composite roles,corresponding single roles,the tcodes assigned to those single roles and the description of t- codes. The selection screen has composite roles,single role and T-code which are optional.User can enter selection in any of the selection critreria.How should I go on this?If user gives only composite roles on the selection for e.g 'TEST'. for this role I get suppose 3 child roles 'TEST1' 'TEST2' 'TEST3' from table AGR_AGRS.Now to get the tcodes i go to table 'AR_1251' and I get the tcodes.
    But if user give only single role on the selection for eg 'TEST2' ,for this single role 'TEST2' there would be multiple composite roles.for e.g, 'TEST' 'SAP1' 'SAP2' etc..Now if go to get the tcodes for this single role in AGR_1251,I will ceatainly get the tcodes for eg MM01,FB01,etc.But then how would I know whether MM01 belongs to composite role 'TEST' SAP1' or SAP2' for the single role 'TEST2'.
    Please advise.
    Thanks
    Edited by: Julius Bussche on Aug 13, 2009 4:52 PM
    Subject title improved

    I though of seperate selection options for singles and composites, but you also said:
    > But if user give only single role on the selection for eg 'TEST2' ,for this single role 'TEST2' there would be multiple composite roles.
    My suggestion would be to build better single roles, but that is just me...
    Cheers,
    Julius

  • Toggling between single and multiple selection in a table

    I am working on ADF faces. I need to switch between single and multiple selection in <af:table based on a button I select.
    I cannot use switcher or rendered property inside <af:table. Only the first one is rendering the second one is not rendering based on the switch
    <f:facet name="selection">
    <af:tableSelectMany autoSubmit="true"
    rendered="#{treeBean.multipleRows}"/>
    </f:facet>
    <f:facet name="selection">
    <af:tableSelectOne autoSubmit="true"
    rendered="#{treeBean.singleRows}"/>
    </f:facet>
    When I use inside the switcher, it doesn't like the parent.
    Any ideas would be greatly appreciated.
    Thanks,
    Vijay.

    I have probably misunderstood what your issue is. I do not know what your version of ADF faces is. Here is some sample code working with my version. Please check if your jdev has "rowSelection" attribute. If it has, please try my sampe code
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces">
    <jsp:directive.page contentType="text/html;charset=utf-8"/>
    <f:view>
    <af:document title="tableSelectMany Demo">
    <af:form>
    <af:panelGroup layout="vertical">
    <af:messages/>
    <af:selectOneChoice value="#{sessionScope.tableSelection}"
    autoSubmit="true"
    id="selType"
    label="Selection Type">
    <af:selectItem label="Single" value="#{null}"/>
    <af:selectItem label="Multiple" value="#{true}"/>
    </af:selectOneChoice>
    <af:table summary="Periodic table"
    binding="#{tableActions.table}"
    partialTriggers="selType"
    rowSelection="#{sessionScope.tableSelection ? 'multiple' : 'single'}"
    value="#{periodicTable.tableData}" var="row" rows="10">
    <af:column>
    <f:facet name="header">
    <af:outputText value="Name"/>
    </f:facet>
    <af:outputText value="#{row.name}"/>
    </af:column>
    <af:column>
    <f:facet name="header">
    <af:outputText value="Symbol"/>
    </f:facet>
    <af:outputText value="#{row.symbol}"/>
    </af:column>
    <af:column>
    <f:facet name="header">
    <af:outputText value="Action Column"/>
    </f:facet>
    <af:commandButton immediate="true" text="Action"
    action="#{row.action}"/>
    </af:column>
    </af:table>
    </af:panelGroup>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • Bridge does not show dimensions for .PDF and .AI files

    Is there any way to see the dimensions in cm (or inch) for PDF and AI files in Bridge? I'm using Bridge CS5 4.1.0.54 as part of CS5.5 Design Premium, have set the preferences in Bridge to show them, but there are no values in the metadata fields for dimensions in inch/cm. I don't know if this behaviour is normal or if there's something wrong with my installation...
    TIA,
    Matthias

    May be 'dimension' is not the right word/translation. In my german version it says 'Abmessungen (in Zoll)' or 'Abmessungen (in cm)', which should mean something like 'dimension' or 'size'. DIN A4, A5, US Letter, Legal etc. pp. in cm or inch.

  • I keep getting a "missing plugin" for midi and mp3 files.

    I keep getting a "missing plugin" for midi and mp3 files I want to listen to online.  These are Hymn files.  And I get a message telling me I have a missing plugin. Any ideas?

    My husband used to be able to convert ABC files to MIDI files .  This allows sheet music to be played on the computer so as to learn a tune.  We get the Missing Plug in  message.
    I downloaded the Quicktime 7.   I open Quick time, Still get the message.  What is the solution? 
    If you need to look at an example, go to "The Session" website:
    http://thesession.org/tunes/2265
    Thank you,
    Mary

  • "Tag Editor" for M4A and M4V Files?

    I got major corruption in my music files, resulting in either 2 extra letters being inserted in the file names just ahead of the period between the file name and the extension, or the entire filename being replaced by 4 random letters. Found some tag editors that will let me repair MP3 files, by pulling tag data out of the file and using it to fix the file names. Does something like that exist for m4a and m4v files?

    No, I'm not suggesting that at all, I was replying to another poster who said they couldn't add artwork to an mp4 at all.
    Your equipment likely has nothing to do with this, I have a dual 4 core 3 Ghz Xeon CPU and I too have a considerable wait sometimes adding artwork to some files.
    mp4 containers can hold either mpeg4/2 or mpeg4/10, (simple mpeg4 and AVC) and each compression type has a whole array of complexity types associated with it, much the same can be said for audio in the mp4 container.
    What I'm saying is that some mp4's will take time to add artwork, some will do it straight away and there are situations where some mp4's won't take artwork. It isn't your system, your hardware or anything you are doing wrong, it's the way it is.

  • Receive Pipeline In Decoder Stage to Extract Single Or Multiple Files From A Zipped Folder In Biztalk Server 2010

    Hi,
    I need help in developing a customized pipeline for the Decoder Stage.
    Requirement : Extract single or multiple files from a zipped folder with any format and extension (X12/EDIFACT/Flat/XML) and send to Disassemble stage for further action.
    Need Urgent help.
    Any suggestion or help is much appreciated.
    Thanks & Best Regards

    Hi Siddharth,
    Have look at article: BizTalk Server 2010: Processing Zip Message Having Multiple Type
    Files and http://tech-findings.blogspot.com/2013/10/custom-zipreceivepipeline-to-unzip.html
    Maheshkumar S Tiwari|User
    Page|Blog|BizTalk
    Server : Scheduling Orchestration using Trigger Message

  • CAT2 for Time Entry (single and multiple)

    Hello all,
    We have been using CATW for time entry and CAT2 for multiple time entry and have security set up accordingly. We're thinking of moving to CAT2 for all time entry but need to make sure we can configure to allow single time entry for those reporting only their own time, and multiple time entry for those reporting their own as well as others. I think this may be doable between a combination of security and IMG/Data Entry profile work. Does anyone have any experience using CAT2 in this way?
    Thanks,
    Doug

    First create a  data entry profile/CVR through SPRO for a time sheet,
    Then assign this profile to a user through user parameter CVR (Cats Variant for Recording) in the table USR05.
    This CVR is used in CAT2 to access the time sheet corresponding to the profile assigned to the user.
    Thanks
    Mahi

  • Programming button for single and double click

    I know how to programme a button to play a certain movie segment. However, in my current project I need to be able to programme a button in the menu so that
    1. on rollover - nothing
    2. on single mouse click - button colour changes + a parapraph of text appears on the menu screen in a predefined space
    3. on double click - a movie clip plays
    It might be a simple qiestion but I would greatly appreciate it if you could point me in the right direction.
    Thanks.

    Nick76 wrote:
    I know how to programme a button to play a certain movie segment. However, in my current project I need to be able to programme a button in the menu so that
    1. on rollover - nothing
    Do not change the highligh and it will look like nothing is happening (make sure auto activate is not beign used)
    2. on single mouse click - button colour changes + a parapraph of text appears on the menu screen in a predefined space
    3. on double click - a movie clip plays
    It might be a simple qiestion but I would greatly appreciate it if you could point me in the right direction.
    Thanks.
    Single and Double clicks cannot be done like that. (Some players using layered menus do require a click to get things seen but not really what you are speaking about.)
    Flash or Director may be better for this?

  • Firefox will not recognize when I change the settings for .torrent and .rar files to "do this automatically for files like this from now on", EVEN AFTER I change the setting in Tools Options Applications.

    Um, why is this? I think my Question pretty much covers it. Is there a way I can fix the settings so Firefox automatically opens .torrent files and .rar files with the programs I tell it to always use?

    I'm sorry to hear that you didn't receive a reply to this problem. As far as I can tell, there '''is''' no reply or solution to this problem so far, as I have exactly the same problem too.
    One solution that I did try (and which worked, but not for my exact needs) was to tell Firefox to ''always'' '''save''' the torrents to the download folder. Then, in your personal torrent program, change the settings so that torrents from the download folder are automatically searched and added. In this way, torrents are automatically loaded in your torrent program. However, for me, I need to see the contents of the torrent before I download it all, which wasn't possible with this method. If that isn't important to you, this should be a sufficient solution.
    Regards,
    Lewis

  • Have found and seen that Yahoo's New CEO Made the choice to change the yahoo front page for good and no longer offer Yahoo Classic

    Raniting and raving and having fixed problems one after another including total erase and reinstalling  whole operating system i am up too Par with Snow Leopard and JAVA SE6  My Lion and Mountain Lion i have chosen not to reinstall, Reason is i do not own a iphone. When i had Lion Mountain lion installed the new improved Java SE 6 was no improved and tried SE7 and it had skipped Safety features and things in my Operating system were changing on there own.
       Using Mountain Lion does not offer the search powered by google in the top right of web page. so Snow Leopard does and java SE6 works for me.
          Searching google for safari and Yahoo classic i seen that last there were any help information listed was in 2008.   i have tried two address to get classic yahoo restored.  1. http://cm.my.yahoo.com/switch   and teh other 2. http://www.yahoo.com/ classic     Neither or worked guess Yahoo CEO's Choice took full effect?   

    Sounds like i have listed my own Answers to my Question buy the Titled Entry to the response is the Question/ Where is the way to change back to yahoo classic for i am not to confident in one way or he other if possible to get Yahoo classic after February 2013

  • Encryption/Decryption  failure for pdf and MSWord files

    Hi,
    Is there anybody to help me to find out what is wrong with my class (listing below)? I am sucessfuly using this class to encrypt and decrypt txt, html files but for unknown reasons I am unable to use it for e.g. pdf files. The encrypion somehow works but any atempt to decrypt is a failure.
    /* This class accepts an input file, encrypts/decrypts it using DES algorithm and
    writes the encrypted/decrypted output to an output file. DES is used in Cipher
    Block Chaining mode with PKCS5Padding padding scheme. Note that DES is a symmetric
    block cipher that uses 64-bit keys for encryption. A password of length no less
    than 8 is to be passed to the encryptFile/ decryptFile methods. This password is
    used to generate the encryption key. All exception handling is to be done by
    calling methods. These exceptions are thrown by encryptFile/ decryptFile methods.
    The input buffer is 64 bytes, 8 times the key size.
    import java.io.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import java.security.*;
    import java.security.spec.*;
    public class Crypto
    public Crypto(FileInputStream inStream_, FileOutputStream outStream_)
    fInputStream_ = inStream_;
    fOutputStream_ = outStream_;
    public void encryptFile(String password_) throws InvalidKeySpecException, InvalidKeyException,
    InvalidAlgorithmParameterException, IllegalStateException, IOException, Exception
    DataOutputStream dataOutStream_ = new DataOutputStream(fOutputStream_);
    // key generation
    SecretKey encryptKey_ = createEncryptionKey(password_);
    // Cipher initialization
    Cipher cipher_= Cipher.getInstance(cipherType);
    cipher_.init(Cipher.ENCRYPT_MODE, encryptKey_);
    // write initialization vector to output
    byte[] initializationVector_ = cipher_.getIV();
    dataOutStream_.writeInt(initializationVector_.length);
    dataOutStream_.write(initializationVector_);
    // start reading from input and writing encrypted data to output
    while (true) {
    inputLength_ = fInputStream_.read(input_);
    if (inputLength_ ==-1) break;
    byte[] output_ = cipher_.update(input_, inputOffset_, inputLength_);
    if (output_ != null)
    dataOutStream_.write(output_);
    // finalize encryption and wrap up
    byte[] output_ = cipher_.doFinal();
    if (output_ != null)
    dataOutStream_.write(output_);
    fInputStream_.close();
    dataOutStream_.flush();
    dataOutStream_.close();
    public void decryptFile(String password_) throws IllegalStateException, IOException, Exception
    DataInputStream dataInStream_ = new DataInputStream(fInputStream_);
    // key generation
    SecretKey encryptKey_ = createEncryptionKey(password_);
    // read initialization vector from input
    int ivSize_ = dataInStream_.readInt();
    byte[] initializationVector_ = new byte[ivSize_];
    dataInStream_.readFully(initializationVector_);
    IvParameterSpec ivParamSpec_= new IvParameterSpec(initializationVector_);
    // Cipher initialization
    Cipher cipher_= Cipher.getInstance("DES/CBC/PKCS5Padding");
    cipher_.init(Cipher.DECRYPT_MODE, encryptKey_, ivParamSpec_);
    // start reading from input and writing decrypted data to output
    while (true) {
    inputLength_ = fInputStream_.read(input_);
    if (inputLength_ ==-1) break;
    byte[] output_ = cipher_.update(input_, inputOffset_, inputLength_);
    if (output_ != null)
    fOutputStream_.write(output_);
    // finalize decryption and wrap up
    byte[] output_ = cipher_.doFinal();
    if (output_ != null)
    fOutputStream_.write(output_);
    fInputStream_.close();
    fOutputStream_.flush();
    fOutputStream_.close();
    // the following method creates the encryption key using the supplied password
    private SecretKey createEncryptionKey(String passwd_) throws InvalidKeySpecException,
    InvalidKeyException, NoSuchAlgorithmException
    byte[] encryptionKeyData_ = passwd_.getBytes();
    DESKeySpec encryptionKeySpec_ = new DESKeySpec(encryptionKeyData_);
    SecretKeyFactory keyFactory_ = SecretKeyFactory.getInstance(algorithm_);
    SecretKey encryptionKey_ = keyFactory_.generateSecret(encryptionKeySpec_);
    return encryptionKey_;
    private FileInputStream fInputStream_;
    private FileOutputStream fOutputStream_;
    private final String algorithm_= "DES";
    private final String cipherType= "DES/CBC/PKCS5Padding";
    private byte[] input_ = new byte[64]; // The input buffer size is 64
    private int inputLength_;
    private final int inputOffset_= 0;
    }

    Please can u give me refined code for me///
    at [email protected]
    Hi,
    I found at least one thing wrong. In the decrypt
    method you are reading from 'fInputStream_' rather
    than 'dataInStream'.
    Worked for me on MSWord after changing this!
    Roger
    // start reading from input and writing decrypted
    ted data to output
    while (true) {
    inputLength_ = fInputStream_.read(input_);
    if (inputLength_ ==-1) break;
    byte[] output_ = cipher_.update(input_,
    input_, inputOffset_, inputLength_);
    if (output_ != null)
    fOutputStream_.write(output_);

  • Help required for slicing and merging file

    Hi,
    I am working on p2p downloading application based on Gnutella. Right now i am trying to implement downlaoding one file from many hosts at a time(like limewire does). i am able to connect to multiple host. but dont know how to downlaod and merge file for his purpose.
    i know how to download one file from single host. but dont know how to handle file coming from multiple hosts.
    if anyone having knowledge, please tell as soon as possble.

    Hi.
    thanks for the reply. Actually i had something same
    in my mind. but unfortunately i am quite week in
    serializtion and file stuff. If you could provide me
    with code snipet for this, or can just simulate in a
    fewer lines of code, it would be a great help for
    me...i have too much short time...
    i think i really have to study this file
    stuff..........You shouldn't use serialization. Just invent a protocol, and "normal" binary data.
    Kaj

Maybe you are looking for