I thought I read in the homepage’s tutorials that there was a way that you could attach a script to an application’s command, much like a handler. But my searches have proved to be in vain. Perhaps my search terms are too obtuse.
I guess I’d like to have a way that whenever I open a QuarkXpress file that a script is noting the file name, its location, its time open can be passed into a MySQL database.
I’ve looked for application command, but I didn’t see what I thought I was looking for. Surely it’s something like a handler?
Thanks for any pointers, sam
Browser: Safari 523.12
Operating System: Mac OS X (10.4)
Thank you for replying. I appreciate your suggestion of a droplet, but I’m trying to brainstorm a way for a database, perhaps mySQL, to open/close a Quark file. Perhaps using the command line SVN, but then I still wouldn’t know when a file is closed and ready to go back to its appointed space on the file server.
I see that the droplet suggestion shifts the initial open from the database to an applet, but closing the document is needed as well.
I’d be grateful for any brainstorms to pull this stunt off, sam
the only thing I could think of is if you write a script that is a stay open app the you run a the beginning of a your shift that checks quark at some interval to check and see if it has a doc open if there is gets the name, location , and some how reports it a database thats the part I’m not sure of. so then have it store the file name in a variable then the next time it checks if that same file is open then it skips logging and if its not then it logs that it has been closed . and so on and so forth…
If you want an AppleScript to fire off when selecting an existing application menu, (i.e the application launches the script in addition to whatever it would normally do when you select that item, if I understand it correctly), try Prefab UI Actions. I have a copy, but the project I got it for stalled and I never got a chance to explore it properly.