![]() ![]() Mv " $file" "/users/your_username/old_docs/ $folderName/ $desName"īefore this works, there are a couple of things you'll want to do. Mv "file" "/users/your_username/old_docs/ $desName"įor file in $(find $folder -atime +30) do This time we're going to create the code that looks for documents older than thirty days and moves them to the symlink we created after logging in, paste the following code in and update it to match your target folders:įor file in $(find ~/Documents/*.* -atime +30) do Our next step is to create a second Automator workflow, this time choose the CalendarAlarm option, and choose the Run Shell Script action again. Then it will mount your FTP server directory to the old_docs Then it will check to see if the old_docsįolder exists in your user folder, and if it doesn't it will create that folder. The script runs at log in, and checks if your Mac is connected to your home network. Save the Application and add it to you log in items. ![]() ![]() sbin/mount -t ftp it to make sure that all of your syntax and connections are correct. If ! -d mkdir /users/your_username/old_docs then If " $currentNetwork" = "Current Wi-Fi Network: Your_Home_Network_SSID" then Under cat, add the following code and enter your information for the SSID and the user directory: currentNetwork=$(networksetup -getairportnetwork en0) In the search box type shell to pull up the Run Shell Script action, drag that into the application area. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |