Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on run
- set savedDelimiters to AppleScript's text item delimiters
- set AppleScript's text item delimiters to "|"
- set sourceFolder to choose folder with prompt "Please select directory."
- tell application "System Events"
- set itemList to (POSIX path of every disk item in folders of sourceFolder whose name extension is "VOB" as string)
- log itemList as string
- end tell
- set AppleScript's text item delimiters to savedDelimiters
- end run
- get POSIX path of every disk item of every folder of alias "Macintosh HD:Users:USERNAME:Desktop:test2:" whose name extension = "VOB"
- --> {{"/Users/USERNAME/Desktop/test2/VIDEO_TS/VIDEO_TS.VOB", "/Users/USERNAME/Desktop/test2/VIDEO_TS/VTS_01_0.VOB", "/Users/USERNAME/Desktop/test2/VIDEO_TS/VTS_01_1.VOB", "/Users/USERNAME/Desktop/test2/VIDEO_TS/VTS_01_2.VOB", "/Users/USERNAME/Desktop/test2/VIDEO_TS/VTS_01_3.VOB", "/Users/USERNAME/Desktop/test2/VIDEO_TS/VTS_01_4.VOB"}}
- log rest of itemList as string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement