![]() ![]() # Build an or predicate to test each URL's UTI against all the specified ones. Set allURLs to theFileManager's contentsOfDirectoryAtURL:theFolderURL includingPropertiesForKeys:keysToRequest options:4 |error|:(missing value) Set allURLs to (theFileManager's enumeratorAtURL:theFolderURL includingPropertiesForKeys:keysToRequest options:6 errorHandler:(missing value))'s allObjects() # Get all items in folder descending into subfolders if asked. Set theFileManager to current application's NSFileManager's defaultManager() Set keysToRequest to current application's NSArray's arrayWithObject:(typeIdentifierKey) Set typeIdentifierKey to current application's NSURLTypeIdentifierKey Set theFolderURL to current application's |NSURL|'s fileURLWithPath:folderPath On filteredContents:folderPath withUTI:wUTI |returning|:returnType recursive:wRecursive Set pageCount to (do shell script "/usr/bin/mdls " & quoted form of myfile & " | /usr/bin/awk '/kMDItemNumberOfPages/ Set progress additional description to "Processing PDF " & numDocs & " of " & nummyFiles Set progress additional description to "Preparing to process." Set progress description to "Processing PDF's." Set myFiles to choose file with prompt "Select all PDF's" with multiple selections allowed ![]() Create an Apple Script and export it as an Application and then send the Application to her. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |