• 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
relative / absolute paths in AS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

relative / absolute paths in AS


  • Subject: relative / absolute paths in AS
  • From: kitshy <email@hidden>
  • Date: Sun, 06 Jan 2002 20:49:52 +0100

Dear AppleScript users,

I am a German design student who is writing his final paper.
I use AppleScript to present my work on CD-ROM.
But I have some problems with it. So I would be very glad if
somebody could help me. I have following question:

I use the software "IconMacher 1.5.4" to generate pictures with
icons. after that I use the "clean up"-AppleScript to put the icons
in the right order again if I mess up the order by myself.

this is the "clean up" Script:

---
property myPath : " HOMEBASE :Desktop Folder:test:"

tell application "Finder"
activate
set i to 32 --incrementer
set s to 10 --left edge of first icon
set t to 30 --top edge of first icon
set zoomed of container window of folder myPath to true
select folder myPath
open selection

select file (myPath & " ")
set position of selection to {s + i * 0, t + i * 0}
select file (myPath & ")
set position of selection to {s + i * 1, t + i * 0}
.
.
.


set zoomed of container window of folder myPath to true
end tell
---

The problem is that this script is only running on my computer
because of the path: myPath : " HOMEBASE :Desktop Folder:test:"

On an other the computer the script does not work if it has a
differnt name for the harddisk.

Is it possible in AppleScript not to give a full path name? Like HTML-Links
where you can use a relative path? For example .../desktop/:test:?
So it runs on every machine?

Many thanks for your help, Jan Jansen


  • Prev by Date: Re: downgrading from AS 1.7 to AS 1.6 in OS 9.2.2
  • Next by Date: RE: relative / absolute paths in AS
  • Previous by thread: OS 9.2.2 - Apple a big dissepointment. - Applescript TOO difficult to use for good business ! ?
  • Next by thread: RE: relative / absolute paths in AS
  • Index(es):
    • Date
    • Thread