Revision: 12616 http://sourceforge.net/p/skim-app/code/12616 Author: hofman Date: 2021-12-11 18:36:07 +0000 (Sat, 11 Dec 2021) Log Message: ----------- Use unevaluated arguments for selection to create a new markup note
Modified Paths: -------------- trunk/SKMainDocument.m Modified: trunk/SKMainDocument.m =================================================================== --- trunk/SKMainDocument.m 2021-12-11 18:34:14 UTC (rev 12615) +++ trunk/SKMainDocument.m 2021-12-11 18:36:07 UTC (rev 12616) @@ -1866,7 +1866,7 @@ - (id)newScriptingObjectOfClass:(Class)class forValueForKey:(NSString *)key withContentsValue:(id)contentsValue properties:(NSDictionary *)properties { if ([key isEqualToString:@"notes"]) { PDFAnnotation *annotation = nil; - id selSpec = contentsValue ?: [properties objectForKey:SKPDFAnnotationSelectionSpecifierKey]; + id selSpec = contentsValue ?: [[[[NSScriptCommand currentCommand] arguments] objectForKey:@"KeyDictionary"] objectForKey:SKPDFAnnotationSelectionSpecifierKey]; PDFPage *page = selSpec ? [[PDFSelection selectionWithSpecifier:selSpec] safeFirstPage] : nil; if (page == nil || [page document] != [self pdfDocument]) { [[NSScriptCommand currentCommand] setScriptErrorNumber:NSReceiversCantHandleCommandScriptError]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit