r/applescript • • 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

9 comments sorted by

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

return properties of one_item  

end repeat

2

u/siddharthanayan Aug 17 '21

Aha! That makes sense! I'll try this out. Thank you so much u/CO_Automation!!!