• 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: Read/Write Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Read/Write Question


  • Subject: Re: Read/Write Question
  • From: JJ <email@hidden>
  • Date: Tue, 03 Jul 2001 12:20:21 +0200

> I have a disk full of Adobe Illustrator files sent to us by a customer
> (12GB). Because the files were previously stored on a different disk with a
> different name all the paths for images used by the files are no longer
> valid. So every time a mac artist opens the file it asks for the location of
> every image placed (eps, tif, etc).
>
> I would like to fix the paths using AppleScript. This (I think) will involve
> using the read/write commands to open each file, search the file for a
> placed image and update the path to the image's new position.
>
> So, my questions are as follows:
>
> 1. The files are large - 1MB to over 40MB. How should I read the files? Will
> it possible to read the file into a variable in one go? Or should I read it
> in chunks?
>
> 2. How should I do the search and replace? With AppleScript's text item
> delimiters? Or a search and replace handler? An example would be "Customer
> Disk:Logos:Logo.eps" to be replaced with "Work Volume:Customer
> Folder:Logos:Logo.eps".
>
> 3. Is FindFile osax the fastest way to search for the image's new location?
>
> Thanks for any input.
>

You can do two things:
Make a long applescript & emulate your customer's HD. If your customer's
disk is called "Customer Disk", then you can mount a image disk named
"Customer Disk" with folder & subfolders ("Images", "Logos"), using
ShrinkWrap or other disk mounter.

I've made an applescript to change EPS fonts. Basically, it reads a large
(or not) EPS file, and writes the search-replaced text to a new file
(chunks).
You can download it (as example) at
http://www.geocities.com/julifos/changeEPSfonts.sit
(15K, requires Dialog Director & Akua Sweets)
It isn't the last version, but works



  • Prev by Date: Re: AppleScript 1.6 (II) *the real problem
  • Next by Date: Re: Rot 13 (OFF)
  • Previous by thread: I'm looking for an autorun-cd script
  • Next by thread: FileMaker Pro - Related Field
  • Index(es):
    • Date
    • Thread