On Feb 12, 2012, at 13:01, Christian Pleul wrote:
>
> On 12.02.2012, at 10:08, Christiaan Hofman wrote:
>
>>
>> On Feb 11, 2012, at 18:22, Christian Pleul wrote:
>>
>>> Hi,
>>>
>>> I tried the script DocInfo from the skim wiki [1] and it returns an error
>>> when running in the applescript editor. Since I never used applescript
>>> before, could somebody please tell me how to correct the script, because I
>>> need to count selected text in a pdf.
>>>
>>> [1]
>>> http://sourceforge.net/apps/mediawiki/skim-app/index.php?title=AppleScript#User-Contributed_Scripts
>>>
>>>
>>> Thank you in advance,
>>> --
>>> Christian
>>>
>>>
>>> -Click. Boom. Amazing!-
>>>
>>> Steve Jobs, 2006
>>
>>
>> After the "set selText to..." line, add the following lines:
>>
>> if docText is missing value then
>> set docText to ""
>> else
>> set docText to docText as text
>> end if
>> if selText is missing value then
>> set selText to ""
>> else
>> set selText to selText as text
>> end if
>>
>>
>> Christiaan
>
> Worked for checking the entire doc. But when selecting e.g. a paragraph, the
> script produces the following error.
>
> ------ error --------
> error "Skim got an error: selection of document 1 doesn’t understand the get
> text for message." number -1708 from selection of document 1
> ----------------------
>
> Best
> --
> Christian
>
>
> -Because I'm the CEO, and I think it can be done.-
>
> Steve Jobs, 2005
Replace "selection for document 1" by "(get selection of document 1)",
including the parenthesis.
Christiaan
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users