If (item 1 of result) is true then display alert "Success. Set theResult to (theDict's writeToURL:saveURL |error|:(reference)) Set saveURL to (current application's |NSURL|'s fileURLWithPath:((theParentFolder as text) & "/" & (basename as text) & ".textClipping")) Save the files in the same folder as source. (theDict's setObject:theObjects forKey:"UTI-Data") Set theDict to current application's NSMutableDictionary's dictionary() (theObjects's setObject:rtfString forKey:"public.rtf") Set theObjects to current application's NSMutableDictionary's dictionary() Set rtfString to (current application's NSString's stringWithContentsOfURL:theURL encoding:(current application's NSUTF8StringEncoding) |error|:(missing value)) Set basename to theURL's lastPathComponent()'s stringByDeletingPathExtension() Set theURL to (current application's |NSURL|'s fileURLWithPath:thePath) Set theParentFolder to theFolder's stringByDeletingLastPathComponent() Pause while its processing and see the tool convert Batch to PDF automatically. Drag and drop it to the highlighted area, browse it from your device storage or the cloud. Set theFolder to (current application's NSString's stringWithString:thePath) Heres how to convert Batch to PDF and modify it quickly and easily: Import a file you need to transform using one of the available options. Set theFiles to (choose file of type with multiple selections allowed) Its was a quick script to I guess it could be improved. I only used the UTI-Data, public-rtf keys and set the “-mac-plain-text” key to empty string. Next I drag and drop whose into TextEdit and it contains the text attribute in the rtf data. Could try this… I made some rtf files with rtf data and run the script below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |