• 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: moving HD volumes on desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: moving HD volumes on desktop


  • Subject: Re: moving HD volumes on desktop
  • From: Andrew Wylie <email@hidden>
  • Date: Thu, 05 Apr 2001 17:57:39 +1200

on 04 Apr 2001 14:01:31 Mark Weikert wrote:
>I dont understand what i'm doing wrong, but I have 7 different
> partitions on my mac. I wanted to write a script that will arrange these
> the way I like them, not the way the mac mounts them. I did a simple
> record in script editor and when i try to execute the script, i get:

>"execution error: Finder got an error: This window is the wrong kind
>(e.g. pop-up vs. normal) to use this command."

I believe the 9.x Finder has a problem with this using certain view
settings, spatial view maybe. I was prompted to write this script to arrange
my desktop following a recent discussion and the disillusionment of being
unable to get my car to work.
Mysterious box characters are most likely those generated by the option L
keystroke .
-------------------------
fatHand({starter:{500, -24}, xory:"1", spacer:"42", moveThese:list disks})

set excLude to (list disks) & "Trash"
try
tell application "Finder" to ,
set derFolds to (name of folders of desktop whose name is not in
excLude) as list
fatHand({starter:{740, 26}, xory:"2", spacer:"48", moveThese:derFolds})
on error
end try

try
tell application "Finder" to ,
set derFiles to name of files of desktop as list
fatHand({starter:{640, 26}, xory:"2", spacer:"48", moveThese:derFiles})
on error
end try
fatHand({starter:{490, 20}, xory:"", spacer:"", moveThese:{"Trash"}})


on fatHand(x)
set {starter, xory, spacer, moveThese} to x's {starter, xory, spacer,
moveThese}
repeat with i in moveThese
try
tell application "Finder" to ,
set position of item named i to starter
set foo to item xory of starter
set foo to foo + spacer
set item xory of starter to foo
on error
end try
end repeat
end fatHand

_____________________________ Andy


  • Prev by Date: RA-Status work-around
  • Next by Date: Re: Long text file manipulation...
  • Previous by thread: Re: moving HD volumes on desktop
  • Next by thread: scripting QuickTime
  • Index(es):
    • Date
    • Thread