Can automator identify file names longer than a specified number of characters?

I have a lot of data that I need to ultimately archive to a PC solution but it currently has a lot of files with names longer than 256 characters.  I know I can batch update the names with automator, but what about an easy way to identify them?? Is there a way to identify file names based on file name length?

Not in Automator.  There are other ways but the question is once you have the files what do you plan to rename them. You can't just cut off all the chars above 256 as this will not ensure uniqueness.
So what convention will you use to make the names unique?
As for getting the files. This command run in the terminal will return all filenames over N long
ls | awk 'length ($0) > N'
so in your case
ls | awk 'length ($0) > 255'
So this could be run from an Automator workflow or Applescript to capture the filenames you want to change. But again it's the renaming that is tricky.

Similar Messages

  • Getting this error when saving: Names longer than 31 characters are not supported on the destination volume

    I've just tried to save a document in Pages and got this error
    Names longer than 31 characters are not supported on the destination volume
    Never had a problem like this before. I haven't changed disks or formatted disks. Running latest Yosemite 10.10
    The only reference I can find to this error on the internet says that it's for applications prior to OS X which I think we can discount.
    The only other reference I can find in the support community relates to one person with problems saving attachments in Mail and dates from early 2014.
    Can anybody give me a suggestion on what I might need to do?
    Thanks

    What format are you saving to?
    Where are you saving the files to and what is that volume formatted as?
    Have you tested with files from other applications, such as TextEdit?
    Peter

  • Is it possible to view ".mp3" files in Mavericks "Tags" windows by file name (rather than the info in the "name" field of it's ID3 tag)?

    Short version:
    When viewing ".mp3" files in a "Tags" window, the information in the "name" column next to the file defaults to the information in the "song" field in the file's ID3 tag.
    Is it possible to change have the "name" column display the actual FILE NAME instead?
    I did some research and found nothing.
    Long version
    Let's say I have a ".mp3" file named "Todd Rundgren - Hello It's Me.mp3"
    When I open the folder this ".mp3" is in and find the file, the "name" column will read "Todd Rundgren - Hello It's Me.mp3" (of course)
    Now, I tag the file "jams"
    Now I go to my "jams" tag view everything tagged "jams", the "name" column in that window DOES NOT say
    "Todd Rundgren - Hello It's Me.mp3" , but instead just "Hello It's Me"
    The finder seems to be pulling this information from the "name" field of the ".mp3" ID3 tag metadata (aka, the information that would be written in the "name" column when viewing the file in iTunes.)
    Ok, that's fine Mavericks, but I want to see the ACTUAL FILE NAME of my ".mp3", (which "tags" windows seems to do for most other things [documents, folders])
    Q: Is it possible to display the filename of a ".mp3" file when viewing a "tag window?"
    Tags are super useful, but this inconsistency makes it inefficient, distracting, and confusing to move freely between the window for a given "tag", and a normal "finder" window.
    Any help would be greatly appreciated, thanks!

    You are not alone…
    https://discussions.apple.com/message/24065588
    https://discussions.apple.com/thread/5762545
    I think you have to avoid editing inside the tags list with the 'metadata names'. Instead right click an item, select 'Open enclosing folder'.
    In 'real folders' you can enable the 'Title' in column via the 'Veiw Menu > show columns', that way you can see the file name & ID3/ EXIF titles.
    'Fake folders' (smart searches & the recent tags list) don't feel finished yet IMO.

  • When bates numbering a .pdf in XI, how can I change the file name to include the bates number AND its name?  I know under file output, there is an option for either/or.  I want both.  Thank you.

    when bates numbering a .pdf in XI, how can I change the file name to include the bates number and the file name?  I know under "file output: it's either/or.  I need both.  Thanks!

    Long ago I wrote a little demo using the touch command. Check out the following thread:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=25128#M25128
    LabVIEW Champion . Do more with less code and in less time .

  • Sorting files by file name rather than ID Tags

    Some of my files have incomplete or missing ID Tags ( a lot of mp3's from vinyl) making sorting more difficult and I typically find it more usefull to sort by file name rather than ID Tag anyway. Does anyone know how to sort by file name?

    Aloha!
    While this is not possible in iTunes right now, I might be able to help.
    It sounds like you've taken care to ensure that your music is properly labeled. That should make it easy to use a third party app to tag the lot as a batch. I am aware of one application that folks around here seem to like called "Tag & Rename" that can build a set of tags for you from folder and file names. I believe it has (or had) a free demo period as well. Try a google search or check out sites like versiontracker and you will find several apps that can do the task for you.
    Once done, iTunes will be able to handle the collection that has apparently been with you for some time. Hope this helps you decide on a course of action.

  • Intermittent error saving attachments from mail: "Names longer than 31 characters are not supported on the destination volume."

    I am reciving intermittent errors saving attachments from mail: "Names longer than 31 characters are not supported on the destination volume."

    I am seeing this too.
    I Posted in similar thread 6704033
    Error when saving calendar exports-names longer than 31 characters not supported on the destination volume.
    Very spooky. Not always reproducible, but it happened to me while using Office365-Outlook web-based email (saving a PDF).
    RE: the suggestion, checking security box "allow apps downloaded from all sites" I would really rather not do that.
    On my system it is set to allow "Mac App store and identified developers."
    Oh sorry, I'm on Yosemite, I see this is Mav forum...

  • How can I hide file names in a photostream?

    How can I hide file names in a shared photo stream on icloud.  I don't want people to see how many pictures I take at an event.  Can this be done to pictures already posted?

    The Shared Photo Stream uses the filename of the original image file as the title that is shown in the stream.  If you want to hide the original filename, export the image to a folder in the Finder, rename it, then reimport it to share it.  You can rename the files directly when exporting.
    Or, if you do not mind to change the names of the originals in Aperture use the command "Metadata > Batch change" and change the title of the image, with the option "Apply to Original file" enabled and "Add metadata from" set to "None".
    To rename the photos already shared, delete them from the Shared Album and share them again.

  • How can I move a title longer than the screen, no the page but just the title in FCP X?

    How can I move a title longer than the screen, not the page but just the title in FCP X?

    Select the title clip in the Timeline, Then Transform. Either click and drag or use the Inspector Position parameters to adjust.
    Russ

  • The File name property is not valid. The file name is a device or contains invalid characters

    I have an SSIS task that has run successfully for years. They just moved the dtsx to a new server and now it is failing. 
    Issue:
    The task has a data flow that writes a raw file destination. It then has a subsequent data flow that reads the raw file destination. 
    The path and name of the raw file is passed to each of the data flows via the same variable. 
    The raw file resides in a folder on the server in the same path that the dtsx resides in. 
    The task fails with the "The File name property is not valid. The file name is a device or contains invalid characters" error when trying to access the raw file.
    What we have done to troubleshoot:
    1. I ran the task successfully on my local machine so it is definitely a server issue.
    2. The first thing we were seeing was that it failed trying to write to the raw file. The task is set to "Create Always". 
    3. We saw that the dba's copied over the entire directory structure from the old server which included a previously created raw file, so we deleted the raw file.
    4. We reran the task and it successfully wrote a new raw file but then failed on reading the raw file with the same error as above.
    5. We reran the task AGAIN and this time it failed trying to write the raw file throwing the same error as above.
    6. The dba looked at the directory and the account that performs the task has full control.
    7. The dba looked at the raw file that was created and verified that the account that performs the task has full control of the file and that it is the owner of the file.
    Summary:
    The task fails when trying to access the file EXCEPT when the file does not exist. In that situation it can write the file but subsequently fails in accessing it again.

    Hi Whalensdad,
    Based on my research, the issue can be caused by the following reasons:
    There are some invalid characters in the File name at package runtime. In this scenario, just as Russ said, could you please post the value that is in the File name variable? Also use a Script Task with Messagebox.show to show the variable values at runtime.
    May be it changes to others at run time.
    The account runs the package not having access to all the folders in the path. Since you are moving the dtsx file from one server to the current server, do you also move the raw file to the same folder in the current server? Does the user runs the package
    have access to all the folders in the path? To solve this, please ensure that the user has access to all folders and the raw file in the path on the current server.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support
    Please see the response above. I can't use a message box on a server so I logged the values to the database. The resource account has full control to the folder. I haven't been able to get the DBA to check the SQL Agents permissions, but I was always under
    the impression that if you use "Run As" on the task, it will not use the SQL Agent but the account you identify it to "Run As". The "Run As" account has full control on the folder and file.

  • The file name is not valid. The file name is a device or contains invalid characters.

    Hi ,
    I am getting below error in SSIS 2008 package when it is run through control-m
    The file name is not valid. The file name is a device or contains invalid characters.
    component "FF_SRC_InboundFidelityInputFile" (1) failed the pre-execute phase and returned error code 0xC020207E.
    although this package is working fine in dev environment from visual studio.
    control-m agent has proper permissions to the folder still it is failing. Please if anyone knows solution for this issue. I am working on this issue since more than a week but reached nowhere. Please help.
    Thanks 
    Paras Gupta

    Hi Paras,
    Based on your description, it is not the VS IDE issue, if it is related to the SSIS, I suggest you post the issue in this forum here:http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlintegrationservices
    , and there you would get better response.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error: "The file name needs to be specified for all documents."

    Hello
    I am trying to make sendDocument api call with the following xml:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://dto.api.echosign" xmlns:ns2="http://api.echosign" xmlns:ns3="http://dto14.api.echosign" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header/>
    <ns0:Body>
    <ns2:sendDocument>
    <ns2:apiKey>content filtered</ns2:apiKey>
    <ns2:senderInfo xsi:nil="true"/>
    <ns2:documentCreationInfo>
    <ns1:fileInfos>
    <ns1:file>CONTENT FILTERED</ns1:file>
    <ns1:fileName>test.pdf</ns1:fileName>
    <ns1:mimeType>application/pdf</ns1:mimeType>
    </ns1:fileInfos>
    <ns1:name>Test.pdf</ns1:name>
    <ns1:recipients>
    <ns3:email>[email protected]</ns3:email>
    <ns3:role/>
    </ns1:recipients>
    <ns1:reminderFrequency>DAILY_UNTIL_SIGNED</ns1:reminderFrequency>
    <ns1:signatureFlow>SENDER_SIGNS_ONLY</ns1:signatureFlow>
    <ns1:signatureType>ESIGN</ns1:signatureType>
    </ns2:documentCreationInfo>
    </ns2:sendDocument>
    </ns0:Body>
    </SOAP-ENV:Envelope>
    Which gives me an error: 'The file name needs to be specified for all documents'. Why does it happen? I specified the file name.

    I think you need to fix the recipient section, it looks incomplete. Use a tool like SoapUi to build and execute requests to the service.
    and/or the sample request in the documentation:https://secure.echosign.com/static/apiv19/sampleXml/sendDocument-request.xml

  • Can't view files with long file names?

    Hi, Im using Mac OSX 10.3.9 and I have a problem viewing files on a server that have long file names (i.e over about 20 characters) they do not show up on my mac but when viewed on a PC computer they are all there. Strange thing is though I have another mac on the same network running exactly the same operating system and version and files with long name can be viewed on that system ?? it is some simple preference does anybody know? Any help would be much appreciated. thank you.

    Hi, I tried accessing a test file that I have made up with a long name through a browser and through FTP and cannot see it on either one. I can however see it on the other Mac that I have access to that is running the same OS and version etc... and also this file can been viewed on the PC's that are around me....

  • Exported file is longer than actual podcast.

    Every time I export my audio file from Garageband to ACC format, the file is always longer than the audio that is contained in the file. How do I make a 38 second file export as a 38 second file?
    Thanks!

    You may not have the End of Song marker at the exact end, or have some blank space at the beginning of your project.
    You can use the Cycle Region to export the exact length you wish. (Press C and adjust the yellow CR at the top of the Timeline. You may want to zoom in for more accuracy).

  • Sqlldr error510 Physical record in data file is longer than the max 1048576

    SQL*Loader: Release 10.2.0.2.0 - Production on Fri Sep 21 10:15:31 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Control File: /apps/towin_p/bin/BestNetwork.CTL
    Data File: /work/towin_p/MyData.dat
    Bad File: /apps/towin_p/bin/BestNetwork.BAD
    Discard File: none specified
    (Allow all discards)
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Continuation: none specified
    Path used: Direct
    Load is UNRECOVERABLE; invalidation redo is produced.
    Table "BN_ADM"."DWI_USAGE_DETAIL", loaded from every logical record.
    Insert option in effect for this table: APPEND
    TRAILING NULLCOLS option in effect
    Column Name Position Len Term Encl Datatype
    USAGE_DETAIL_DT FIRST * , DATE MM/DD/YYYY HH24:MI:SS
    UNIQUE_KEY SEQUENCE (MAX, 1)
    LOAD_DT SYSDATE
    USAGE_DETAIL_KEY NEXT * , CHARACTER
    RATE_AREA_KEY NEXT * , CHARACTER
    UNIT_OF_MEASURE_KEY NEXT * , CHARACTER
    CALL_TERMINATION_REASON_KEY NEXT * , CHARACTER
    RATE_PLAN_KEY NEXT * , CHARACTER
    CHANNEL_KEY NEXT * , CHARACTER
    SERIALIZED_ITEM_KEY NEXT * , CHARACTER
    HOME_CARRIER_KEY NEXT * , CHARACTER
    SERVING_CARRIER_KEY NEXT * , CHARACTER
    ORIGINATING_CELL_SITE_KEY NEXT * , CHARACTER
    TERMINATING_CELL_SITE_KEY NEXT * , CHARACTER
    CALL_DIRECTION_KEY NEXT * , CHARACTER
    SUBSCRIBER_LOCATION_KEY NEXT * , CHARACTER
    OTHER_PARTY_LOCATION_KEY NEXT * , CHARACTER
    USAGE_PEAK_TYPE_KEY NEXT * , CHARACTER
    DAY_OF_WEEK_KEY NEXT * , CHARACTER
    FEATURE_KEY NEXT * , CHARACTER
    WIS_PROVIDER_KEY NEXT * , CHARACTER
    SUBSCRIBER_KEY NEXT * , CHARACTER
    SUBSCRIBER_ID NEXT * , CHARACTER
    SPECIAL_NUMBER_KEY NEXT * , CHARACTER
    TOLL_TYPE_KEY NEXT * , CHARACTER
    BILL_DT NEXT * , DATE MM/DD/YYYY HH24:MI:SS
    BILLING_CYCLE_KEY NEXT * , CHARACTER
    MESSAGE_SWITCH_ID NEXT * , CHARACTER
    MESSAGE_TYPE NEXT * , CHARACTER
    ORIGINATING_CELL_SITE_CD NEXT * , CHARACTER
    TERMINATING_CELL_SITE_CD NEXT * , CHARACTER
    CALL_ACTION_CODE NEXT * , CHARACTER
    USAGE_SECONDS NEXT * , CHARACTER
    SUBSCRIBER_PHONE_NO NEXT * , CHARACTER
    OTHER_PARTY_PHONE_NO NEXT * , CHARACTER
    BILLED_IND NEXT * , CHARACTER
    NO_USERS_IN_CALL NEXT * , CHARACTER
    DAP_NO_OF_DSAS_USED NEXT * , CHARACTER
    USAGE_SOURCE NEXT * , CHARACTER
    SOURCE_LOAD_DT NEXT * , DATE MM/DD/YYYY HH24:MI:SS
    SOURCE_UPDATE_DT NEXT * , DATE MM/DD/YYYY HH24:MI:SS
    RATE_PLAN_ID NEXT * , CHARACTER
    NETWORK_ELEMENT_KEY NEXT * , CHARACTER
    SQL string for column : "-2"
    SQL*Loader-510: Physical record in data file (/work/towin_p/MyData.dat) is longer than the maximum(1048576)
    SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
    Table "BN_ADM"."DWI_USAGE_DETAIL":
    0 Rows successfully loaded.
    0 Rows not loaded due to data errors.
    0 Rows not loaded because all WHEN clauses were failed.
    0 Rows not loaded because all fields were null.
    Date conversion cache disabled due to overflow (default size: 1000)
    Bind array size not used in direct path.
    Column array rows : 5000
    Stream buffer bytes: 256000
    Read buffer bytes: 1048576
    Total logical records skipped: 0
    Total logical records read: 7000382
    Total logical records rejected: 0
    Total logical records discarded: 0
    Total stream buffers loaded by SQL*Loader main thread: 1666
    Total stream buffers loaded by SQL*Loader load thread: 4996
    Run began on Fri Sep 21 10:15:31 2007
    Run ended on Fri Sep 21 10:27:14 2007
    Elapsed time was: 00:11:43.56
    CPU time was: 00:05:36.81

    What options are you using on the CTL file? How does your data file looks like (e.g. One line per record, one line only)?

  • Error on passing paramter names longer than 16 char on portal import page

    After created a transport set, we used portal import page to import it.
    However, when we select that transport set and click "import", an 404 error occured right away. The url is:
    /pls/portal/PORTAL.wwutl_ui_export_import.import_eds
    When we check the Apache error logs, it seemed all parameter names that are longer than 16 characters in the page's html form were passed wrongly. Those characters
    after the 16th character of the parameters' names were some unreadable or wrong
    ones. For example, P_EXPLICIT_MODE_EDS was passed as P_EXPLICIT_MODE_ˆ„N to the
    backend pl/sql procedure and that's why there was a "SIGNATURE (parameter names)
    MISMATCH" error I think.
    My question is actually why the internal portal pages couldn't pass parameter
    names that are longer than 16 characters. Are there some settings wrong with
    the portal metadata database or oracle portal itself, or even our linux system? Was it because maybe we set the multilanguage-support for our portal?
    This error also happens in some other portal internal pages. Please help and you can also contact me at email: [email protected]
    Thanks a lot!

    Hi,
    Found a note explaining the significance of these errors.
    It says:
    "NZE-28862: SSL connection failed
    Cause: This error occurred because the peer closed the connection.
    Action: Enable Oracle Net tracing on both sides and examine the trace output. Contact Oracle Customer support with the trace output."
    For further details you may refer the Note: 244527.1 - Explanation of "SSL call to NZ function nzos_Handshake failed" error codes
    Thanks & Regards,
    Sindhiya V.

Maybe you are looking for

  • Reports that it is absent plagin and there is no sound into safari when you open site.

    Reports that it is absent plagin and there is no sound into safari when you open site.

  • Old Mac Mini G4 can't connect to 2009 Mac Mini via AirPort

    Well, I bought a new Mac Mini and wanted my kids to use the old one for general web surfing. The first day I hooked it up with the AirPort to the new one and everything was great, we were Home Sharing iTunes, sharing files, etc. The next day when I p

  • FX5600U 128 VTD Video to DVD

    OK I finally installed the Video capture drivers properly for this card (ie the ones not including a TV Tuner driver) and everything seems to have gone in ok with no more errors. I want to transfer loads of old home video to DVD but I feel as though

  • Global Address List in Outlook

    Hi We are using Outlook Connector version 7.1 (patch 122018-02 ). We are able to connect to the Mail, Calendar and the users personal Address Book. But the global address list is empty. What should be done to have it accessed through outlook. Please

  • Running projector files on Microsofts Surface 2 SUR40 table

    Hi! I've been trying to get this working for a week now. I'm basically trying to get flash projector files to run through the SUR40's Launcher environment under SurfaceMode. On the regular desktop, everything works fine, I can open the exe without an