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

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

  • Follow-Ups:
    • Re: Folder Actions Strangeness
      • From: "Gary (Lists)" <email@hidden>
  • Prev by Date: Re: Setting password of a keychain key
  • Next by Date: Re: Folder Actions Strangeness
  • Previous by thread: Re: Quicktime - export audio
  • Next by thread: Re: Folder Actions Strangeness
  • Index(es):
    • Date
    • Thread