• 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: Help with Quark 5.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with Quark 5.0


  • Subject: Re: Help with Quark 5.0
  • From: Hans Haesler <email@hidden>
  • Date: Tue, 31 Dec 2002 09:50:47 +0100

On Mon, 30 Dec 2002, Michael Hartman wrote:

>I have this script I wrote when I was using Quark 4.11 and OS 9.2.1 but now
>I am having problems with it. It won't run. The script updates the path of
>every picture box to the new server location. Help me I am going nuts trying
>to get this to work.

Hello Mike,

your new file path is a string. Loading an image with QXP 5 needs
an alias. So, all it takes is to insert 'alias':
---
set image 1 to alias newPathFile
---

And you could speed up execution by setting a variable to the
properties of the image...
---
tell image 1
set p to properties
set oldPath to file path of p as string
end tell
---
... and reset them like this:
---
set properties of image 1 to {scale:scale of p, offset:offset of p, ...}
---
No need for the variables 'iSca', 'iOff' and so on.

You could also simplify the concatenation of the new file path:
---
set Key1 to text 1 thru 1 of FOLDERNAME
set Key2 to text 1 thru 2 of FOLDERNAME
set Key3 to text 1 thru 3 of FOLDERNAME
---
This way, instead of using...
---
... ":" & Key1 & Key2 & Key3 & ...
---
you can say:
---
":" & Key3 & "
---

Happy New Year!

Hans

---
Hans Haesler <email@hidden>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Help with Quark 5.0 (From: Michael Hartman <email@hidden>)

  • Prev by Date: Re: Scripting system preferences in OS X 10.2.3 (Christian Boyce)
  • Next by Date: Re: GUI Scripting: Change Monitor Colors
  • Previous by thread: Help with Quark 5.0
  • Next by thread: <no subject>
  • Index(es):
    • Date
    • Thread