Hello everyone, first time posting and first time getting into applescript. I've been trying to get the following script to work but it doesn't do anything. No errors or nothing! It's probably completely backwards and missing half of what I need but here it is
As you can probably tell I'm trying to move image files larger than 1270 wide to another folder once it is added. Any help is greatly appreciated
Code:
on adding folder items to this_folder after receiving added_items
repeat with each_item in added_items
tell application "Image Events"
launch
copy the dimensions of added_items to {xdim, ydim}
if xdim is greater than 1270 then
duplicate each_item to folder "Users:xxxxxxx:Library:Application Support:Plex:userdata:Thumbnails:Video:Fanart"
end if
end tell
end repeat
end adding folder items to
As you can probably tell I'm trying to move image files larger than 1270 wide to another folder once it is added. Any help is greatly appreciated