• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Filename/pathname length issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Filename/pathname length issues


  • Subject: Filename/pathname length issues
  • From: Marc Glasgow <email@hidden>
  • Date: Wed, 05 Dec 2007 07:21:09 -0500

Greetings Scripters!

I've ran into two filename/path length ceilings while using a standard call in GraphicConverter (v6.0.2) that has me slightly perplexed; I can't determine if the issue is unique to the app's AS implimentation, or if it's an AS issue independent of GC because aside from stand-alone (non-application dependent scripts), GC is about the only thing I script...

The first issue (the more critical of the two for the workflow) is a 31 character filename limit on saving files via applescript.
-- where OurNewFileNameGIF is the path/filename for the save and window 1 is a PSD file.
try
save window 1 in OurNewFileNameGIF as GIF with makeCopy and wwwready without transparency
on error
display dialog "Unable to save resulting GIF file! (Possible Duplicate)" & return & "(more likely too long a path name)" buttons {"Continue", "Cancel"} default button 2
end try


If OurNewFileNameGIF has a filename in the finder that exceeds 31 characters, the resulting saved file comes out with a filename that is a seven digit number (example: 1225171) that bears zero resemblance to the name fed to the save call and omits the filename extension as well.
Similarly, if the enclosing folder name (or any folder it's nested in) exceeds 31 characters, or the full-path name exceeds 255 characters, the output is nothing (no new file created).


 I wanted to see if someone else could shed any light on the issues.

Cheers
=-= Marc Glasgow
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Filename/pathname length issues
      • From: Brian Johnson <email@hidden>
  • Prev by Date: Re: InDesign CS3 export PDF with convert all spot to process
  • Next by Date: Re: Problem with reading 4-byte floats from file on Intel
  • Previous by thread: Re: InDesign CS3 export PDF with convert all spot to process
  • Next by thread: Re: Filename/pathname length issues
  • Index(es):
    • Date
    • Thread