• 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
Re: A couple of problems...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A couple of problems...


  • Subject: Re: A couple of problems...
  • From: Martin Orpen <email@hidden>
  • Date: Mon, 20 Sep 2004 15:43:58 +0100

on 20/9/04 2:50 pm, Emmanuel at email@hidden wrote:

> At 2:11 PM +0100 20/09/04, Martin Orpen wrote:
>>
>> I'm working on a script that uses Image Events to read Photoshop files and
>> then save them back to disk.
>>
>> Problem 1
>> Image Events doesn't error when you feed in a file that it cannot read or
>> write properly. So it will both open and save a layered .psd file without
>> complaint - despite being able to do neither. Should this be considered as a
>> bug or a feature?
>>
>> Problem 2
>> Using "read file" my app will crash with:
>>
>>    Exception: "EXC_BAD_ACCESS"
>>    Codes:  "KERN_INVALID_ADDRESS"
>>
>> When reading large files. Is there any documentation about data size
>> limitations in AS? Or does anybody know the max number of bytes that can be
>> read into an AppleScript app before it crashes and burns?
>
> You'll help answering your question by quoting the first lines of the
> crash log.

The lines *above* those that I quoted are:

Host name
Date/Time
OS Version
Report Version
Command
Path
Version
PID
Thread

How does any of that information help me work out the limitations on the
number of bytes that can be read into my script before it dies?

The lines below tell me what I already know:

Thread 0 crashed:
0 com.apple.applescript - 0x8e4c0cf8 GCMakeString(unsigned long) + 0x2c

Is the data in there?

--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: A couple of problems... (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: How write to a file in an invisible folder ?
  • Next by Date: Re: Securely scripting a remote machine (was Re: VB or c++ call in script)
  • Previous by thread: Re: A couple of problems...
  • Next by thread: Re: A couple of problems...
  • Index(es):
    • Date
    • Thread