On Jan 31, 2009, at 4:03 PM, Mark J. Reed wrote: I thought it was clear that Adam is talking about the icons on the desktop. On Sat, Jan 31, 2009 at 1:25 PM, Deivy Marck Petrescu < email@hidden> wrote:
On Jan 31, 2009, at 00:49, Adam Gerson wrote:
I would like to write an AppleScript that will move any
files/folders/applications it finds on my primary monitor to my second
monitor. Not even sure where to begin. If I have a specific file
selected is there a way to move it to my other display?
Thanks,
Adam
_______________________________________________
Adam,
what do you mean by moving a file to a window?
A file is in a directory. It can not be moved to a location in the monitor.
An open window of that file can be moved to a different location in the
monitor.
Do that via "Finder".
Open windows can be moved, files and directories can not.
Open an window and move it to the second terminal, get its bounds.
Then, using those bounds, move all other windows that you want to that
monitor.
Hope this helps.
-- Mark J. Reed < email@hidden>
Mark, I do confess that rereading the message I still do not get it. Basically, because If I wanted to move the icons I do it in 1 second via the finder, with a mouse! But, ... Anyway, if one wants to use AS to do that here is a start, that woks:
--- set p to path to "desk" as string tell application "Finder" set p to folder p tell p repeat with j in (get its every item) set l to get desktop position of (contents of j) --set desktop position of item j to {x, y} end repeat end tell end tell ---
|