I wrote the original script; I've attached it for easy reference (Script Hook Did Auto File.scpt). Additionally, I've modified it slightly to run manually as well (Local File to Local-URL.scpt), so if you can't get the script hook one working, you can try the manual version (it runs on the selected publications). You can look at the differences between the two to see how a script hook differs from a "manual" AppleScript.

-AHM

On 2008-02-27, at 10:36 AM, Christiaan Hofman wrote:

That explains it. This is raw AppleScript text, and a .scpt file is supposed to be compiled AppleScript. You should paste it into Script Editor and save it as a .scpt file instead.

Christiaan

On 27 Feb 2008, at 7:28 PM, chael wrote:

Yes, I'm using auto-file. I now tried to hook it to "Add File or URL", and it didn't work either (just to be clear what i did: i saved the code from the post linked to below in a .scpt file and hooked it in the preferences file).

Are you even using auto-file? Otherwise you should add it to the "Add File or URL" script hook.
Christiaan

On 27 Feb 2008, at 3:22 AM, chael wrote:

hi,
I've been using bibtex2html to share files with others, relying on the local-url field to create relative links to files. Even though local- url is deprecated and no longer used when filing papers, I would still like a

relative link in that field for that purpose (just the file name would do). I tried to add the script hook given to someone with a similar issue in the
following post:

http://www.mail-archive.com/[email protected]/msg02033.html



...but I cant get it to work. I tried to add it both to 'Will Auto File" and
to "Did Auto File", but neither worked. (I may be making a very basic
mistake---I've never added a script hook before). Any leads how to do this, or how to achieve the same in a different way?

best,
michael.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Attachment: Local File to Local-URL.scpt
Description: Binary data

Attachment: Script Hook Did Auto File.scpt
Description: Binary data


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to