On Nov 19, 2011, at 0:32, FZiegler wrote:

> Thank you so much for taking the times to educate me; I've happily 
> adopted all your suggestions.
> 
>> When you use a path in a shell script, you should always quote the path. In 
>> AppleScript you can conveniently do that by using "quoted form of thePath". 
>> 
>> Also, there can be multiple linked files. So getting "POSIX path of linked 
>> files" gives you a *list* of strings. So you should get something like 
>> "POSIX path of linked file 1". And you should first check whether there are 
>> linked files, and also whether the Local-Url isn't overwritten or 
>> unnecessarily set.
> 
> Ah. At first I had tried the quoted form (inspired by the script of 
> Andreas who is careful to do that), but it hadn't worked, and I believe 
> your second remark above explains exactly why. With both changes in 
> place it works fine.
> 
> I don't intend to ever have an entry with more than one linked file. 
> btw. To me this contradicts the whole spirit of bibliography: if we have 
> two different documents, then they should each have its own entry.
> 

It doesn't matter what you do. I am talking about what "linked files" returns: 
a list. Whether that's a list of one or more does not matter. So you should 
treat it as a list in your script.

Christiaan


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to