Newsgroup: it.comp.macintosh
Titolo: scrivania in disordine

Scusate l'ignoranza, ma come mai dopo l'uscita da certi programmi(a me
lo fa tutte le volte che esco da VPC) le icone si ridispongono sulla
scrivania in modo disordinato? Si puo' fare qualcosa per evitarlo?
Grazie
Antonio

 wrote:

Risoluzione del monitor modificata dall'applicazione?
Silvio

 Risoluzione del monitor modificata dall'applicazione?
no, mi pare proprio di no....

 E fa esattamente quanto descritto.
Grazie, provero'
Ciao
Antonio

In article <1enukoi.3zs5xs12mx5d0N@[151.14.166.112]>, 
antonio.s...@iol.it
 (Antonio Scanavacca) wrote:

Per ripristinare l'ordine puoi usare Desktop Icon Manager, e' un 
applescript freeware.
< 
http://www.cwws.net/~parker9/script.html
 >
-- 
"Thats not what a Mac does. I want Mac on the PC, I want Mac on the PC."
Bill Gates during Windows development

 applescript freeware.
oppure Finder Workspaces sempre freeware
Ciao

Io ho comprato "desktop resetter" (10$) che si trova sui dischetti  di
Macworld
Ovviamente tieni conto anche di cio' che ti hanno detto gli altri apropos
di risoluzioni video.....
ciao
Antonio Scanavacca ha scritto:


 wrote:

DIM, e' un Applescript freeware, anzi.. eccolo qui (se non funzionasse
qualcosa controlla gli a-capo):
(* set properties *)
property iconsall : {} (* list of all icons on desktop *)
property positionall : {} (* corresponding list of positions of the
icons on desktop *)
property screenSize : {} (* screen size for the previous lists *)
property prompt_p : true (* should user be prompted, or default to just
'Restore'*)
(* something was dragged onto DIM *)
on open x (* get user request *)
        if (count of iconsall) = 0 then (* first time run *)
                firsttime()
        else (* not a first time run *)
                copy "1" to df -- default is to Update
                if prompt_p = true then copy "2" to df -- default is to
Restore
                notfirsttime(df)
        end if
end open
(* DIM was told to run (double-click, automatic, etc.) *)
on run (* get user request *)
        if (count of iconsall) = 0 then (* first time run *)
                firsttime()
        else if prompt_p = true then (* they want to be prompted *)
                notfirsttime("2") -- default is to Restore
        else
                restore()
        end if
end run
on firsttime()
        set request to display dialog "Create icon position database?"
buttons {"Cancel", "Create"} default button "Create"
        if button returned of request is "Create" then update()
end firsttime
on notfirsttime(df)
        copy "Automatically Restore on run
                     (currently Prompted on run)" to x
        if (prompt_p = false) then copy "Prompt when run
                     (currently Automatically Restores)" to x
        copy "Choose option number:
" & ¬
                "               1. Update database
" & ¬
                "               2. Restore icon positions
" & ¬
                "               3. " & x & "
" to y
        set request to display dialog y buttons {"Cancel", "Choose..."}
default button "Choose..." default answer df
        if button returned of request is "Choose..." then -- do the
option they want
                if text returned of request = "1" then -- want to update
                        update()
                else if text returned of request = "2" then -- want to
restore
                        restore()
                else if text returned of request = "3" then
                        copy (not prompt_p) to prompt_p
                        notfirsttime(df)
                else
                        notfirsttime(df)
                end if
        else if button returned of request is not "Cancel" then
                notfirsttime(df)
        end if
end notfirsttime
on update()
        copy (count of iconsall) to numicon
        (* store icon names & positions and screen size *)
        tell application "Finder" (* yeah, delete old info (if any) *)
                copy {} to iconsall
                copy {} to positionall
                copy {} to screenSize
 
                -- new bit from Stéphane Madrau to make it 1.1- much
faster than the block commeted out immediately below
                set iconsall to name of items of desktop
                set positionall to position of items of desktop
                copy the bounds of the desktop's window to the
screenSize (* also store the size of the current desktop *)
                (*              set iconlist to items of desktop (* get
list of ions on the desktop *)
                repeat with i in iconlist (* and store in database *)
                        copy name of i to end of iconsall
                        copy position of i to end of positionall
                end repeat *)
        end tell
 
        -- see if they want to be prompted or not
        if numicon = 0 then
                copy "Prompt" to x
                copy "Automatic" to y
                copy "Prompt or Automatically restore icon positions on
run?" to z
                if prompt_p = true then
                        copy "Automatic" to x
                        copy "Prompt" to y
                end if
                set request to display dialog z buttons {"Cancel", x, y}
default button y
                if button returned of request is x then copy (not
prompt_p) to prompt_p -- switch option
        end if
end update
on restore()
        (* want to restore the icon positions *)
        tell application "Finder"
                copy the bounds of the desktop's window to the
newscreensize (* get new desktop size *)
        end tell
        set newdx to item 1 of newscreensize (* exclude the menu bar,
newdx should equal 0, but ... *)
        set newdy to item 2 of newscreensize
        set xrel to ((item 3 of newscreensize) - newdx) / ((item 3 of
screenSize) - (item 1 of screenSize)) (* horizontal scaling *)
        set yrel to ((item 4 of newscreensize) - newdy) / ((item 4 of
screenSize) - (item 2 of screenSize)) (* vertical scaling *)
        repeat with i from 1 to number of items of iconsall (* for each
icon... *)
                ignoring application responses -- added ignoring segment
implied from Stéphane, since we don't care how the Finder responds
                        (* set icon to new position if it exists,
otherwise punt *)
                        tell application "Finder" to set position of
item (item i of iconsall) of desktop to ¬
                                {newdx + (0.5 + ((item 1 of (item i of
positionall)) - newdx) * xrel) div 1, ¬
                                        newdy + (0.5 + ((item 2 of (item
i of positionall)) - newdy) * yrel) div 1} (* new position *)
                end ignoring
        end repeat
end restore
-- 
"The basic tool for the manipulation of reality is the manipulation of
words. If you can control the meaning of words, you can control the
people who must use the words." 
-Philip K. Dick (1928-1982)