• 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
File length limitation when using a droplet's "on open" handler?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

File length limitation when using a droplet's "on open" handler?


  • Subject: File length limitation when using a droplet's "on open" handler?
  • From: John Kiss <email@hidden>
  • Date: Thu, 29 Nov 2007 12:48:09 -0500

Hello all,

I'm writing a script to read the exif data of graphics files using the "get file exif" command of GraphicConverter. That works well if I run this within a script, or use the "choose file" command when running the same script as an application.

My problem comes when I make a droplet. It seems that the droplet works fine as long as my graphics files dropped on it are 28 characters or less. If I add one more character to a 28 character file and then drop it on the droplet, I get a type 2 error from GraphicConverter.

My question. Is there a number of character limit when using the "on open xxxx" handler? and if there is, what is the standard way of getting around it?


This works no matter how long the file name is:
on run
--script--
set fileNameToChange to choose file
tell application "GraphicConverter"
try
set fileData to get file exif fileNameToChange 
-- script--

This also works fine
on run
--script--
set fileNameToChange to alias ":Users:john:Desktop:123456789012345678901234567890123etc.JPG"
tell application "GraphicConverter"
try
set fileData to get file exif fileNameToChange 
-- script--



This also works as long as the file name is not over 28 characters but returns a type 2 error for files over 28 characters in length:
on open fileNameToChange
--script--
tell application "GraphicConverter" 
try
set fileData to get file exif fileNameToChange as string
-- script--

Any insight would be welcome.
Thanks
John

 _______________________________________________
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

  • Prev by Date: Keeping a text-entry in the background, or a work-around
  • Next by Date: Re: How do I use UI scripting to click a button in a save dialog in TextEdit in Leopard?
  • Previous by thread: Re: How do I use UI scripting to click a button in a save dialog in TextEdit in Leopard?
  • Next by thread: Mail.app - Can't get contents of email with attachments
  • Index(es):
    • Date
    • Thread