Folder Actions Strangeness
Folder Actions Strangeness
- Subject: Folder Actions Strangeness
- From: Luther Fuller <email@hidden>
- Date: Fri, 31 Mar 2006 12:51:18 -0600
Title: Folder Actions Strangeness
This past Tuesday, I asked about launching a
bundled application as a folder action. I wasn't too worried when
someone suggested that one can't do that, because I was confident that
I knew a workaround. Today I tried to implement the workaround only to
run into a strange problem. Perhaps a bug.
Save this test script as an application
(named "FA Test"):
on run
tell application
"Finder" to display dialog (path to me) as text
end
run
on opening
folder folderAlias
tell
application "Finder" to display dialog (path to me) as
text
end
opening folder
Every application has a 'location'. If you run this application,
you will see it's location. If you run this application via an alias,
you will see the same location.
Place an alias to this application in your
<username>/Library/Scripts/Folder Action Scripts folder. When
you double-click this alias, you get the same location as above.
Attach "FA Test" to a folder via the alias. When you
open this folder, you get:
<username>/Library/Scripts/Folder Action Scripts/FA Test, not
the expected result. And not a very useful result, either.
The "FA Test" application has lost its location when
used as a folder action. This short-circuits any reliable workaround
that will let a bundled application be used as a folder action.
I suspect this is a bug. Any opinions?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden