• 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 Action for Applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Folder Action for Applications


  • Subject: Re: Folder Action for Applications
  • From: Robert Poland <email@hidden>
  • Date: Sun, 11 Aug 2013 20:51:57 -0600

On Aug 11, 2013, at 7:11 PM, Manoah F. Adams <email@hidden> wrote:

> What you need to do is create a droplet for each application in issue.
> put your preference-file-swapping code in the sub-routine, and provide 'on run' and 'on open' entry points, and of course, have the script launch the applcication once the swap has been made.
> then ( ! important ! ) give your droplet's Info.plist a CFBundleDocumentTypes entry equal to that of your target application.
>
> You may have to manually drop the application's file on your droplet once or twice to get LaunchServices to pay attention.
>
> as an alternative to  or in addition to the Info.plist entry, you can use Default Apps (third-party pref pane) to force the files to be opened by your droplet.

RCDefaultApp.  From MacUpdate " - But with MacOSX ML, it seems to have broken}

"Do Something When" seems to do the job even if it's also very old.

> P.S. I'm running Tiger, so CFBundleDocumentTypes may or may not have been superseded, but I think you'll figure it out.
>
> On Aug 9, 2013, at 15:06 , Robert Poland wrote:
>
>> Thanks Stan,
>>
>> Sounds like the beginning of a never ending project.
>>
>> One thought though - that won't deal with double clicking on a file to open in an application.
>>
>> I have a similar script that deals with many of the application windows.
>>
>>
>> On Aug 9, 2013, at 3:50 PM, Stan Cleveland <email@hidden> wrote:
>>
>>>> Is there something like a Folder Action for Applications?
>>>>
>>>> I would like an action that resets options to my preferred default choices.
>>>>
>>>> Like with GraphicConverter, setting the toolbar to Selection (M), etc.
>>>
>>> Hi Robert,
>>>
>>> How about something simple? Write a script application that starts by asking you to choose the application to reset (from a hard-coded list). The script would then pass control to a handler associated with that application, which would deal with the specifics of doing the reset. That way, one script app could accommodate any number of applications and launch with a simple double-click.
>>>
>>> Just a thought,
>>> Stan C.
>>
>> Robert Poland - Fort Collins, CO
>>
>>
>>
>>
>>  _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> AppleScript-Users mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>> Archives: http://lists.apple.com/archives/applescript-users
>>
>> This email sent to email@hidden
>

Robert Poland - Fort Collins, CO




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


References: 
 >Folder Action for Applications (From: Robert Poland <email@hidden>)
 >Re: Folder Action for Applications (From: Stan Cleveland <email@hidden>)
 >Re: Folder Action for Applications (From: Robert Poland <email@hidden>)
 >Re: Folder Action for Applications (From: "Manoah F. Adams" <email@hidden>)

  • Prev by Date: Re: Folder Action for Applications
  • Next by Date: ARD control issues
  • Previous by thread: Re: Folder Action for Applications
  • Next by thread: Re: Folder Action for Applications
  • Index(es):
    • Date
    • Thread