• 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 saved as applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder Actions saved as applications


  • Subject: Re: Folder Actions saved as applications
  • From: What does not kill you only makes you stronger <email@hidden>
  • Date: Fri, 24 Nov 2000 09:30:47 -0600

on 11/24/00 12:18 AM, email@hidden wrote:

> Is there any way of attaching a script saved as an application to a folder?
> I'm using Mac OS 8.6 and AppleScript 1.3.6

Below is an example of what I think you are looking for:
BTW: You could use a second script to attach the action if you wanted.
<shrug>

*****************************
on run
activate
display dialog "Oh Hi!"
end run

on open (theFolder)
set kMyPath to path to me
tell application "Folder Actions" to ,
attach action to theFolder using kMyPath
--the above line will attach a folder action to an applet or droplet
end open

on opening folder ThisFolder
my SetPopUp(ThisFolder)
end opening folder

on moving folder window for ThisFolder
my SetPopUp(ThisFolder)
end moving folder window for

on SetPopUp(ThisFolder)
tell application "Finder"
if popup of window of folder ThisFolder is false then
activate
set view of window of folder ThisFolder to small icon
set spatial view arrangement of window of folder ThisFolder to
arranged by name
set zoomed of window of folder ThisFolder to true
set popup of window of folder ThisFolder to true
set pulled open of window of folder ThisFolder to false
end if
end tell
end SetPopUp
****************************************


References: 
 >Folder Actions saved as applications (From: Stephen Fitchett <email@hidden>)

  • Prev by Date: Re: Scripting more than one version of an app?
  • Next by Date: Re: HELP! PDF to EPS, how?
  • Previous by thread: Folder Actions saved as applications
  • Next by thread: Re: Folder Actions saved as applications
  • Index(es):
    • Date
    • Thread