≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Feature request #303

Feature request #303: REQUEST: Ability to run non-compiled, non-application AppleScripts as "Track Change Items"

Kind feature request
Product Synergy Advance
When Created 2005-09-24T21:01:06Z, updated 2011-02-28T20:45:08Z
Status open
Reporter Greg Hurrell
Tags no tags

Description

As requested in this forum thread:

https://wincent.dev/a/support/forums/showflat.php?Number=830

Here's what needs to be done (as posted to forum):

"To make these work with Synergy (and even non-compiled ones) I'd have to make changes to the code which treated files with a .scpt extension differently. In those cases, instead of doing the equivalent of a double-click (which would most likely open them in Script Editor which isn't what you want), I could make Synergy read the textual contents of the file, try to compile the text into an AppleScript and then execute it."

Comments

  1. Greg Hurrell 2006-07-05T02:06:28Z

    Changing assignment to reflect my new email address.

    https://wincent.dev/a/news/archives/2006/05/change_of_email.php

  2. Greg Hurrell 2006-12-05T17:36:28Z

    See also:

    https://wincent.dev/a/support/forums/ubbthreads.php?ubb=showflat&Number=1143

  3. sjmills 2008-04-16T14:21:20Z

    I'd really like to see this one get implemented. For the past few years I've been using launchd to run an AppleScript every 2 minutes, which checks to see if iTunes is now playing a different song than the last time it checked, and if so, write a file. I wanted to use the Track Change Items, but find it extremely annoying to have an app launch and quit (thereby changing the foreground app) every time the song changes (or I change the song). And you shouldn't have to try to load the text or anything like that - just use OSADoScriptFile, or use the individual steps if needed, and don't forget to save the script back to the file (if it was a compiled script) so changed properties get saved.

  4. Greg Hurrell 2008-04-16T17:56:29Z

    I agree that the potential benefits of this feature outweigh the costs/risks. My major concern was with the security of running arbitrary items in a folder, but I think it can be done in a reasonably safe fashion if care is taken.

    By the way, that link to the forum post is broken because it points to the old forums. I think that it's a reference to either this or this thread. Funnily enough, the first of those threads was started by you!

  5. anonymous 2011-02-28T20:45:08Z

    Send event to shell if .scpt e.g. osascript <path to script> ?

Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets