RE: relative / absolute paths in AS
RE: relative / absolute paths in AS
- Subject: RE: relative / absolute paths in AS
- From: Hellum Timothy <email@hidden>
- Date: Sun, 6 Jan 2002 15:42:29 -0500
Jan,
I use this little app as well.
After it assembles the icons into the folder window (tucked up into the
upper left corner), I disregard the placement script and simply select all
the icons together and drag them as one to where I want the "image" to sit
in the folder window. Once the CD is burned, the icons appear where they
were dragged without anyone after the fact having to resort to the placement
script. Tried on three different machines with various OSs and AS versions.
Works every time.
HTH,
Timothy
--------------------------
Photodesk
The Globe & Mail
Canada's National Newspaper
(416) 585-5375
www.globeandmail.ca
>
----------
>
From: kitshy
>
Sent: Sunday, January 6, 2002 2:49 PM
>
To: email@hidden
>
Subject: relative / absolute paths in AS
>
>
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
>
_______________________________________________
>
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.