This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env osascript | |
on run argv | |
set script_folder to (POSIX path of ((path to me as text) & "::")) | |
set this_folder to (script_folder & (item 1 of argv)) | |
tell application "System Events" | |
set these_files to files of folder this_folder whose name extension is "pages" | |
end tell |