On Tue, Jul 28, 2009 at 2:19 AM, Christiaan Hofman <[email protected]>wrote:
>
> On Jul 28, 2009, at 1:54 AM, Andreas Fischlin wrote:
>
> Dear Christiaan,
>
>
> as POSIX file,
>
>
> ... a POSIX file needs a POSIX style path, not a Mac style path. And it
> works.
>
In addition you should not send the 'POSIX file' to an app, so you can't
directly use it inside a tell block. Either use it outside the tell bock, or
prepend it by the keyword "my" (so the 'POSIX file' is send to the script
rather than the app).
So either say:
set aFile to POSIX file "/path/to/a/file"
tell application "BibDesk"
do some command with aFile
end tell
or:
tell application "BibDesk"
do some command with (my POSIX file "/path/to/a/file")
end tell
Christiaan
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users