Re: Folder Actions saved as applications
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
****************************************