Re: Moving Icons Was: Writing to a file
Re: Moving Icons Was: Writing to a file
- Subject: Re: Moving Icons Was: Writing to a file
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 14 Jul 2002 16:51:29 -0700
On 7/14/02 2:01 PM, "JP Kelly" <email@hidden> wrote:
>
Thanks for all your help Paul.
>
The script I am working on is to remember where all my desktop icons
>
are/were and move them to where they were on startup. Specifically my
>
numerous disks which tend to get spread around when the desktop gets
>
cluttered.
>
Pretty trivial.
>
There was a script that did this in OS 9 using persistent variables.
>
I think persistent variables are not an option in OS X so I was writing the
>
positions to a file.
No, that's not so. Of course properties are persistent in OS X. You must
have dipped into the AppleScript Studio mailing list - there they can't save
properties in their uncompiled bundled scripts, or something of that sort.
(Someone will correct me - I'm not using AS Studio so I haven't got that
quite right, but it's something along those lines.)
Save whatever you need to persist in the script's properties at the top of
the script.
>
Now I just figured out that the "position" property applies to a finder
>
window only and not the actual desktop. (in OS 9 it applied to both)
>
Any idea where the positions for desktop icons are stored?
I don't think they're _stored_ anywhere. If you mean, how can you get them,
i don't know if that's possible - someone else will know. I see only what i
imagine you did for any Finder item:
position point -- the position of the item within its parent window
(can only be set for an item in a window viewed as icons or buttons)
Just a indo, not the screen desktop. That may be something you'll have to
wait for in a later OS update.
>
>
Anyway there is probably a better way to do this.
>
If it is worth doing at all.
--
Paul Berkowitz
_______________________________________________
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.