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

Re: relative / absolute paths in AS


  • Subject: Re: relative / absolute paths in AS
  • From: kitshy <email@hidden>
  • Date: Mon, 07 Jan 2002 00:00:37 +0100

Hi Timothy,

many thanks for your reply. Maybe I described my problem not properly.
I want to use the placement script as a design option. Firstly I destroy
the picture by moving every icon to another place by myself. So the
user sees only strange icons. But then he starts the AS and the picture
appears in a typically IconMacher animation. So with the Clean Up script I
can do animations on the desktop. With this experiment I want to show that
you don't need software like Director or Flash to do animated pictures but
just the finder. So I need really need to know if it is possible to
do relative paths with AS.

But many thanks again, Jan Jansen


on 06.01.2002 21:42 Uhr, Hellum Timothy at email@hidden wrote:

> 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.
> _______________________________________________
> 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.


  • Prev by Date: Quark disk lister (List Contents)
  • Next by Date: Applescript and VBA
  • Previous by thread: RE: relative / absolute paths in AS
  • Next by thread: Re: relative / absolute paths in AS
  • Index(es):
    • Date
    • Thread