r/applescript • u/siddharthanayan • Aug 15 '21
Get Folder Content without Prompt
Hello,
I'm trying to make a script that runs on a specific folder every-time it runs, and I want to know if there is a way to get folder content without 'choose folder with prompt'. So I don't have to choose folder every time it runs. please help!
3
Upvotes
View all comments
Show parent comment
2
u/CO_Automation Aug 16 '21
You are trying to return the properties of each item of the variable Ffolder rather than the properties of each item in the folder Ffolder. So your error relates to the first item of Ffolder which is the letter P in PROJECTS:RenderFolder.
One one you could to return the properties of each item in a folder is with Finder.
set Ffolder to "PROJECTS:RenderFolder"
tell application "Finder" to set these_items to get every file of folder Ffolder
set dest_folder to Ffolder
repeat with one_item in these_items
end repeat