• 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: Folder Actions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder Actions


  • Subject: Re: Folder Actions
  • From: Olivier Destrebecq <email@hidden>
  • Date: Wed, 08 Aug 2001 10:17:57 -0500

here is yet a better version.
I'll post it on the following web page a tonight
http://homepage.mac.com/otusweb/applescript/main.html


olivier
on adding folder items to parent_folder after receiving added_items
set moved to true
repeat with CurrentItem in added_items
if alias of (get info for CurrentItem) is false then
tell application "Finder" to move CurrentItem to desktop
else
set moved to false
end if
end repeat
if moved is false then
tell application "Finder"
set parent_folder to folder "Untitled folder"
set popup of container window of parent_folder to false
set Saved_Size to (size of container window of parent_folder)
set Saved_Width to item 1 of Saved_Size
set zoomed of container window of parent_folder to true
set new_Size to size of container window of parent_folder
set new_Height to item 2 of new_Size
set size of container window of parent_folder to {Saved_Width,
new_Height}
set popup of container window of parent_folder to true
end tell
end if
end adding folder items to


> From: Jon Pugh <email@hidden>
> Date: Tue, 7 Aug 2001 20:30:41 -0700
> To: <email@hidden>
> Subject: Folder Actions
>
> At 6:45 PM -0700 8/7/2001, John W Baxter wrote:
>> --John (who has not yet written a folder action script, so you know how
>> valuable his advice is)
>
> Here's the worthless Folder Action script I want to write. I tried writing it
> a back when Folder Actions came out, but couldn't get the Finder to cooperate.
> Now it might and I'm too busy to try.
>
> I keep tabbed folders along the bottom of my screen. They are small icon view
> and 1 or 2 columns of nearly even rows. I want an added file (typically an
> alias) to adjust the window size so that all the icons are visible and then
> move the window back to its tabbed position.
>
> In fact, I wouldn't mind it if, when a non-alias was added, the file was put
> back onto the desktop instead. That could stop accidental drags to my alias
> folders. ;)
>
> I'll gladly praise anyone who writes it for me. ;)
>
> Jon
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users


  • Follow-Ups:
    • Re: Folder Actions
      • From: Jon Pugh <email@hidden>
References: 
 >Folder Actions (From: Jon Pugh <email@hidden>)

  • Prev by Date: Re: [OFF] Replies from Rodolfo
  • Next by Date: Re: [OFF] Replies from Rodolfo
  • Previous by thread: Re: Folder Actions
  • Next by thread: Re: Folder Actions
  • Index(es):
    • Date
    • Thread