Can't read big name of folders by script

It happens once in a while that the images we had edit and are ready to save give us an error saying that the File I want to saveAs can't be found.
So, in this case, we had to save manually each image, rename the folder to a shorter name mannually, re-open the images and apply the script again.
This solve the problem.
To avoid this, or at least to warn automatically that some encoded folderName.length is too big.
I HAVE FOUND THAT ON WINDOWS7 THE ERROR BEGINS ON FOLDERS LENGTH >188
I had the ideia of making a 'thumbsPreview' event on Bridge where a big folder warning would be generated so I could add a button on bridge where automatically we rename that folder to only the first 188 caracters. But this is for Bridge forum. I leave here only the idea.
PROBLEM:
So, on photoshop, reading a folder name larger then 188 caracter encoded name by script, give us a shorter version of the real name.
This is an real example:
Real big folder name of an active image ( encoded length = 211):
_d_10416472-ACNE.ASKIN.DARK.BROWN.COGNAC.Calf.Leather.BASICON.BS08ANCORA.COCCIO.Cotton.Spa ndex.Elastane.Calf.Leather.Calsssf.Leather.FS0526G8WF0EQW.F0EQW.Cotton.SW.Cotton.Spandex.E lastane.Cotton.Spandex.Elastane
Name red by script ( encoded length = 12):
_D_104~1.LEA
Resume:
So, the result is an error on saving the file to a folder that doesn't exist ('_D_104~1.LEA').
The problem is that if I cant read it, I can't rename it by script to force it to rename to 188 length.
I have to use bridge and do it mannually
Middle prevent sollution:
Anyway of detecting that a folder name has been shortened by script so I could use that to make an specific alert???
I have tryed by I couldn't.
Curiosity:
By script I can easly create() new folders larger then 188 length name! But then I can't use them - not even to put files in (error)...

Thanks Michael
So that means I can't have too much folder/subFolder/subFolder/... organization.
I was trying to detect when a path is larger then 255, at the moment I try to saveAs. To do so, I have put a try catch when execute the action and on the error code I manage to do this:
- read the name truncated of the last folder on the path (it is, in my case, allways the larger one);
- I don't know if I could trust on this: if the end of the truncated name is == ".LEA" then i means that the folder must be shortened and give the user that precise information.
Can I trust this?

Similar Messages

  • Can't see app names in folders

    Hi,
    I've recently upgraded my z to lollipop and it's been great ever since, but I've noticed some minor bugs. First of all i can't see app names when they're organized in folders, maybe i'm missing some settings but i think it's a bug. Secondly i find Google bar in multitasking very annoying, is there a way to disable it? Btw great work Sony, new OS runs fast and smooth on my "old" device! Keep it up!

    After a few days post upgrade on my ZR C5503 the largest issues I have found are:Low volume for headset speaker, can barely hear anyone when using the phone unless I am using ear buds or BT headphonesBattery drain is insane!  Full charge used to last 3 days of normal use, now I am lucky to make it 30 hours under less use!Alarms not functioning right, sounds are not looping properly and twice in a week the screen starting flashing and not allowing me to silence/snooze alarmBluetooth connection are not as smooth as before, takes longer and really drains battery when connected (more than twice what it did before!)

  • Is it possible for a mac to run across a Windows based server such as in a school, and still be able to access all networked folders? I have been told that macs can only read down a certain number of folders

    Is it possible to run a mac on a windows based server? We have a server based on Windows 7 in our school, and our techies are reluctant to let me buy a mac as they say macs can only read a number of folders deep, which would preclude me from accessing shared folders on our servers. Is this true, and is there a way round this? I would eventually like to get a suite of macs, but because all our resources are on the server, I have to be able to access them.
    Thanks for any help,
    Mike

    I have found that both Linux and Mac (unix) are capable of reading "deep" folders while win 32 will have issues, your it people are clearly wrong.  I run a network with both win/mac. And as long as the win servers/pc's that have shares are set to allow apple file sharing in their folder properties.   And the macs are set to allow smb there should absolutely no trouble with you accessing anything across the platforms, heck, from a Mac to a win pc on some occasions you don't even need to include a "domain" name to log on to, and you can create aliases and make your own shortcuts etc... So you don't have to manually connect each time you boot up etc... But that's all personal preferences I suppose.
    All I can tell you is that, I do it on a daily basis managing a small business. So your answer is yes you can.

  • How can I read my incoming emails in one folder?Like I do in Live mail and Outlook express.

    Now we can only read emails in different folders if I am managing multiple email accounts.
    It does not feel so comfortable as we use Live mail and Outlook express.

    '''Unified Inbox for pop and Imap mail accounts:'''
    If you use the Unified folder view, this will show an Inbox with all emails from all accounts, with sub folder Inboxes for the individual Inboxes for the various accounts. Then you can choose to view the collective Inbox or the individual Inbox.
    This method can be chosen simply and quickly.
    * View > folders > Unified
    '''Setting up Pop mail accounts to use Global Inbox.'''
    Pop mail accounts can be set up to use a Global Inbox in Local Folders.
    Imap mail accounts cannot be set up to use Global Inbox, but can use the Unified view.
    To change Pop mail accounts to use Global Inbox, you would need to move all emails into Local Folders Inbox.
    Then change the settings for each pop mail account.
    Tools > Account Settings > Server Settings for the pop mail account
    click on 'Advanced' button
    select 'Inbox for a different account' and 'Global Inbox (Local Folders)
    click on OK
    You need to do this for each Pop mail account.
    Then close Thunderbird. You must do this before downloading anything otherwise the emails may continue to go to the wrong Inbox.
    Wait a few moments for Thunderbird to fully close and then restart Thunderbird.
    Please read more info on global inbox here:
    * http://kb.mozillazine.org/Global_Inbox

  • Read Computer Name

    Can we read 'Computer Name' and display in text field when the PDF form is loaded? Can someone give me syntax?

    I don't think you can - this would be an opportunity for a security leak if it were possible - you'd be able to get the name of the computer and then via WSDL tell someone else the name of the computer the user is using.
    You can get the platform (xfa.host.platform) and the host application (xfa.host.name, usually "Acrobat") but nothing that's particularly identifying.
    SteveX
    Adobe Systems

  • How can I read a file directly please?

    Hello everyone,
    How can I read a file directly from a script please? I tried the insert into ... values but it does not work. I really have to read the file instead of entering the data via the interface. Does Oracle have a copy command? Each file line is split with tabs for each field in the line.
    Finally how can I subdivide the strings in each field?
    Thank you very much indeed and sorry for the basic questions.
    André Luiz

    SQL> create or replace directory data_dir as '/tmp';or
    SQL> create or replace directory data_dir as 'c:\temp';Where /tmp or c:\temp are directories or folders on the server.
    A full example of importing a tab delimited file is here.
    Re: Using DML order to import a .xls file

  • Can't name new folders or rename existing folders in Finder

    I can't name new folders or rename existing folders in Finder. I've never had this happen before. I tried both using the new folder icon and choosing "new folder" from the actions icon. The only unusual thing I'm doing now is working with Spaces enabled, but I can't imagine that this has anything to do with the problem. Selecting and hitting "return" doesn't allow me to either erase existing text or overwrite with new text. Any ideas?
    Thanks.
    Sue A.

    Same here --
    I just created a new folder and couldn't change its name. Finder would give me "more info" (permissions certainly not an issue) and allow me to delete (and then recreate) the folder, but not change its name.
    Problem came from out of the blue, on a one-week-old system with all OS updates. Also found this old thread, which also suggests a Finder restart: http://discussions.apple.com/thread.jspa?messageID=8989639
    So that'll probably do it, but what gives?
    Not so impressed with 10.5.7 so far... first a complete system crash while doing no more than downloading updates (a few hours after booting up for the first time), then networking stopped working (see http://discussions.apple.com/thread.jspa?threadID=2003868), now this...

  • Randomly can't name new folders

    About once a month or so, the finder randomly stops allowing me to name any new folder I create. The folder name will be selected, but nothing happens when I try to type in a new name, and it just stays 'untitled,' even if I click off of it and reselect it. I can only rename it if I go under Get Info. The only thing that seems to fix this problem is restarting my machine. This time around the problem progressed-- first I couldn't name any folders and now all of a sudden I can't open Get Info w/ the keyboard command. I can only open it by going to the menu. Any ideas what is causing this wackiness??
    Thanks

    Same here --
    I just created a new folder and couldn't change its name. Finder would give me "more info" (permissions certainly not an issue) and allow me to delete (and then recreate) the folder, but not change its name.
    Problem came from out of the blue, on a one-week-old system with all OS updates. Also found this old thread, which also suggests a Finder restart: http://discussions.apple.com/thread.jspa?messageID=8989639
    So that'll probably do it, but what gives?
    Not so impressed with 10.5.7 so far... first a complete system crash while doing no more than downloading updates (a few hours after booting up for the first time), then networking stopped working (see http://discussions.apple.com/thread.jspa?threadID=2003868), now this...

  • HT6030 I have many problems with my mail since I moved to mavericks. The filter is very sensitive, read mail appears as unread, I can't drag mail to the folders and more. I can't update the mail program as directed on this page, update says my system is u

    I have many problems with my mail since I moved to mavericks. The filter is very sensitive, read mail appears as unread, I can't drag mail to the folders and more. I can't update the mail program as directed on this page, update says my system is updated

    I don't think that a software update from Apple will solve the issues that you are having. You have a rogue installation. After you posted I have just done the following:
    Disk Utility can verify  my partitioned Volume (including my boot disk) AND REPAIR the non-boot disks on the same Volume without a glitch. It repairs the non-boot disks containing data smoothly.
    I have used Mail to send some mails from some Yahoo and Hotmail accounts to my Thunderbird client containing GMail accounts - absolutely normal.
    I have iLife '09 but my iMovie '09 and iPhoto '09 open in a jiffy and I see no issues here. I have 6GB RAM (Maximum) on an early 2008 Macbook Pro with a 750GB hard drive partitioned with 120GB reserved for the Boot Drive.
    I am sorry that I cannot help further but I am sure there must be a way to reinstall the software without having to revert to restoring your ML backup. I have two clones and if you have such I would attempt to do that through that rather than through Time Machine - that is of course if you have a cloned drive.
    Good luck!

  • What is the name of the folders which are your backup of Itunes library? I am recovering from a virus, have no workable desktop in Win XP, but can search and find files and folders. I would like to move these backup files to a new computer

    what is the name of the folders which are the backup of Itunes library? I am recovering from a virus, have no workable desktop in Win XP, but can search and find files and folders. I would like to move these backup files to a new computer, authorize it and sync with Iphone 3Gs and Ipod 5th gen.
    I

    I second the whole iTunes folder approach.
    If for some reason you have split the media folder from the library files then the media folder needs to restored to the same path it used to have while the library files can be copied into the music folder of your new profile.
    If in dobut, backup up the entire Documents and Settings folder before wiping the infected drive, but be selective about what you restore as many viruses drop active components capable of reinfecting the compuer in the temp folders and internet caches. It is much easier to backup more than you need than to discover after the fact that you no longer have access to some vital project you'd been storing in a folder on the desktop.
    tt2

  • Can't change names of folders or drives on desktop

    All of a sudden my powers to change names of files and folders on desktop has been taken away from me, I'm stuck with untitled folder 1,2,etc..
    Please help
    Thanks,
    Aaron

    Hi Rugger,
    Sounds like a permissions thing. Try using Disk Utility. It's here:
    Applications/Utilities.
    Launch DU, select MacintoshHD in the panel on the left, then click
    Repair Disk Permissions. When it's finished, Quit Disk Utility.
    Reboot and see if that makes a difference.
    And some tips about naming or renaming folders ... etc.
    Changing the names of items
    You can easily change the name of a file, folder, or disk on your computer.
    IMPORTANT: To avoid problems using Mac OS X or applications on your computer, don't move or change the names of folders that came with your system (such as the Library folder or your home). You should also not change the names of applications or items associated with specific applications. If you accidentally change the name of an installed item and you experience problems, you can change the name back.
    Locate the item you want to rename on your desktop or in a Finder window.
    Click the item to select it, then click the name. The name is highlighted and you will be able to edit it.
    Type the new name and press Return.
    Some document names have a file extension, such as ".txt" or ".jpg." If you change the name of a file and delete the extension, some applications may no longer recognize the file. To ensure the file can be recognized by the application that created it, change only the part of the name that comes before the extension, or open the file using the appropriate application, then save the file with a new name.
    You cannot change the name of an item in the Finder window's sidebar. You must locate the item on your desktop or in a Finder window to highlight and change the name.
    Carolyn

  • The calendar typeface is so dim, I can barely read it. Name of days and date, but not the items I put in. Apple says they have no fix. Anyone else have this problem? Any solutions?

    The calendar typeface is so dim, I can barely read it. Name of days and date, but not the items I put in. Apple says they have no fix. Anyone else have this problem? Any solutions?

    I agree and I found your post because I did a google search ical typeface dim.
    If I find anything out, I will post back here.

  • Can I re-name bookmark folders and if so how?

    How can I re-name bookmark folders?

    Right click the folder in the sidebar and open the Properties to change the name.<br />
    In the Bookmarks Manager (Bookmarks > Organize Bookmarks) you can change the name in the Details at the bottom right.
    * https://support.mozilla.com/kb/how-do-i-use-bookmarks

  • I can not read my folders on the desktop. I receive the message "appleworks 6 quit unexpectedly" Is it because I installed new software that a message said yesterday. I must be able to read my folders on the desktop. Help

    How can I read my folders. Appleworks 6 quit unexpectedly and that is the message I get every time I try to open the folder. Please help.

    re-post and include details of what Mac you have and what verson of OS X.
    He did:
    https://discussions.apple.com/message/18001126
    Unfortunately he included none of the above so babowa had to ask all over again
    Posted here so you will get an email and hopefully respond because this is a good one

  • Can you EDIT a name in your reading list on safari?

    Can you edit the name of an item on your reading list? I know how to delete but not edit. I save a lot of things on the reading list from one site and it names them all the same thing. I am looking for a way to change the names so I can differentiate between them easier.  Thanks.

    No, the reading list entries cannot be edited. The Title and descriptive text are picked up from the attributes of the pages you book mark. You will need to use bookmarks rather than the reading list if you wish to edit it.

Maybe you are looking for

  • How to use JNDI lookup

    Hi , I am creating a POC for my project.Its using ATG and spring frameworks using RAD 6.first I have created ATG sample project in that same EAR file i created sample Spring project.Both are running in the same EAR. I want to use spring classes from

  • Backup Dying HD in Target Mode?

    I got the folder question mark icon. Disk Utility could not fix it and repeated the ominous "incorrect number of thread records" & "invalid volume file count". DiskWarrior made a good attempt, but with the thousands of "diskwarrior speed reduced to d

  • Why won't iphone get family organizer invitation

    Hi. I have an ipad air.  My family member has an iphone 5.  I reset the iphone 5 and put it under a new apple ID. Both devices used to be the same ID.  I sent an invitation from ipad to that iphone 5 so I could connect the iphone 5 to my family netwo

  • 802.1x authorization while client is hibernated

    Hi, we run 802.1x in our LAN and it looks the authenticator tries to authorize Thin Clients who are in standby. This happens randomly almost every 10 minutes: 007083: Nov 4 05:35:13 cet: %DOT1X-5-FAIL: Authentication failed for client (2c9e.fc4e.7f73

  • Why ican't I find jndi.properties for TopicConnectionFactory lookup?

    I have a problem with IPlanetMessageQueue3.0 . Why i can't find jndi.properties for TopicConnectionFactory lookup ? Like this Context ctx = new InitialContext();TopicConnectionFactory tcf = (TopicConnectionFactory)ctx.lookup("TopicConnectionFactory")