Re: target of folder action
Re: target of folder action
- Subject: Re: target of folder action
- From: Kai <email@hidden>
- Date: Thu, 16 Jan 2003 11:03:25 +0000
on Wed, 15 Jan 2003 23:16:03 +0000, I wrote:
>
on Tue, 14 Jan 2003 08:13:12 -0500, Gary Lists <email@hidden> wrote:
>
>>> path to me
>
>
>
>> That should return the path to the Folder Actions extension file.
>
>
> Oops. Yes, that's the path to the actual script (at least it is for me.)
>
>
Something strange still seems to be happening here, Gary.
[snip]
>
>> Try a folder action script along these lines instead:
>
>>
>
>> =====================================
>
>>
>
>> on opening folder this_folder
>
>> display dialog (this_folder as string)
>
>> end opening folder
>
>>
>
>> =====================================
>
>>
>
>> In this example, the variable 'this_folder' is the target (as an alias) of
>
>> the folder action 'opening folder'.
>
>>
>
> Kai, with AS 1.8 this returns the path to the running script with the 'on'
>
> folder action handler.
[snip]
>
If your configuration is returning the path to the running script (instead
>
of pointing to the relevant folder), I doubt that your Folder Actions are
>
working as they should. Are you using Folder Action scripts for anything
>
else - and how are they behaving?
One further thought on this. If you're working in OS X, have Folder Actions
been enabled?
----------------------------------------------------------------------
tell application "System Events" to set folder actions enabled to true
----------------------------------------------------------------------
I understand that to get Folder Actions working correctly, it may also be
necessary initially to log out and back in.
(Apologies if these points are not related to the problem.)
--
Kai
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.