OS X Technologies :: Folder Action To Run A Shell Script
Aug 7, 2012
I want to create a Folder Action to run the following shell script on all files with extension .vcs:
sed '1d' >reminder.ics
The job of the Folder Action is to take any Calendar item files downloaded from TVGuide.co.uk, remove the first line and then save them as .ics files. The reason for this is that the files are automatically generated with a carriage return on the first line, which BusyCal (being strict about these things) doesn't like. It then rejects the whole file.
I have tried doing this with Automator but the result didn't work.
If it's possible to have the Folder Action retain the original file name (ie. everything pre-extension) that'd be a bonus.
Info:
Mac mini (Mid 2011), Mac OS X (10.7.4)
View 4 Replies
ADVERTISEMENT
Mar 7, 2012
Does any one know of a bug or a log for folder scripts that do not run? I am trying to get a basic folder script (to replace %20 in the file name) of the Downloads folder.
When downloading multiple files (two or more) it runs only on the first file, successfully without error, and then never runs on the second file. If I move both of the files out of the Downloads folder and move it back it, the one file that does not get the folder action now does and everything is peachy.So it is not that the folder action is not scripted properly. It is just that the folder does not catch the second file download - guess maybe too fast? Has any one seen this or have this bug?
Info:15" Unibody MacBook Pro , Mac OS X (10.6.4)
View 13 Replies
View Related
Mar 30, 2012
I am running OS 10.6.8, using Automator to create a Folder Action. The input is a single folder containing 2 or more PDF files. I drop this folder onto the folder with the action attached. All of the PDFs are combined and the resulting PDF is copied to a new location.
It works very well with one problem. The name of the combined PDF is an automatically generated system name. I would like this PDF file name to change to the name of the original folder that contained the original PDFs.
To summarize: "Folder A" has the action attached. "Folder B" contains 2 or more PDFs. I drop Folder B onto Folder A. Automator creates a new combined PDF. I would like this to be named "Folder B.pdf"
Info:
Mac Pro, Mac OS X (10.6.8)
View 2 Replies
View Related
Jul 2, 2012
Please accept my apologies if I'm posting in the wrong section . I've been using the fantastic Create Booklet PDF Service (workflow) by Christoph Vogelbusch (his page is on .mac, so it just went bye-bye). I'd like to turn this worklfow into a folder action so that when a file is added to the folder, a pdf booklet is created automatically. In particular, I'm interested in doing this in Microsoft Word. Can anyone tell me if this is even possible, and if so, either point me in the right direction (or, at least, to the best Automator community where I might repost this request)?
Info:
2.2 GHz Intel Core 2 Duo MacBook Pro, Mac OS X (10.6.3)
View 1 Replies
View Related
Feb 8, 2012
I had been using automator quite successfully until recently now I'm unable to get automator to step through even the most basic setup. It refuses to step through to the second action and perpetually runs without producing any results as the image below shows.for any of my automator setups I get results for the first step and then an indefinate hang on the second leaving the step icon greyed out. I have tried this with numerous other actions like calendars etc but to no avail. Below are the very basic automator steps I'm using in this example.
Info:
iMac, Mac OS X (10.7.2)
View 10 Replies
View Related
Mar 1, 2012
Any sample script to collect the information from Mac OS such network, hostname, Mac OS version.. so on?
Info:
MacBook Pro, Mac OS X (10.7.2)
View 2 Replies
View Related
Nov 19, 2009
Is there a way to create a folder-action that accomplishes what I'm about to describe?
I have iTunes-library (like most of us do). What I would like to accomplish is to copy my library to a server on my network. Of course I can do the initial copying manually, but what I would like to do is that whenever I add content to my library, a folder action kicks in, and copies that new content to the server.
Now, I created a folder action with Automator, and it kinda works. What it does is that it looks at certain folder, gets folder-contents (subfolders included, since iTunes-library resides in subfolders), and copies them to another folder. It works, but what happens is that it copies the subfolders and their contents AND the individual files separately. I mean that if I copy a folder called XXXX which contains subfolders called ZZZZ and YYYY, which in turn contain files ABCD and 1234, it doesn't copy the folder XXXX, but it does copy the subfolders ZZZZ and YYYY and their contents. All well? Well, no, since it also copies the individual files (ABCD and 1234) to the root of the destination-folder. What I would like to copy the folders in similar way they are in the original folder.
Also, what happens when I reboot my computer? When I log back in, would the folder copy the entire folder-structure all over again? I mean, I log in, the folder-actions runs, and copies the contents of the folder. What I would like it to do is to only copy files over when new files/folders are added.
View 6 Replies
View Related
Nov 6, 2009
I cannot get Folder Actions Script working on Leopard 10.5.8.
I have put a simple script in ~/Library/Scripts/Folder Action Scripts/ and attached it to a folder on the Desktop, but no way to make it act.
I suspect it may be a permission issue, but I do not know how to repair it. I tried repairing permissions with Disk Utility and with Onyx, but no success.
View 4 Replies
View Related
Aug 29, 2014
I use Apple Mail, of course that's IMAP.
I removed MailPilot that I was trying and somewhere the Folder MailPilot still exists. I tried to trash it, remove it, rename it and nothing can be done with it...it says that folder does not exist.
Is there any way to clean that out of my IMAP directory. It doesn't show up on iClould or Mail but does show up on Postbox. Yet the error is clear that my IMAP account still thinks it is there.
Using Mavericks. The Apple Mail program does NOT show this directory but is still must exist somewhere.
Info:
iMac, Mac OS X (10.7.3)
View 2 Replies
View Related
Jun 11, 2012
I created a folder action in Automator and can't find it to edit it or delete it. I've looked everywhere I could think of and ran a spotlight search but I can't find the .workflow document. All I want to do is delete the workflow.
Info:
MacBook Pro, Mac OS X (10.7.4)
View 4 Replies
View Related
Mar 19, 2012
I'm making an applescript app for my company, and had a question.The functionality of the app is working great, but there is a certain step which can take up to several minutes.This can give the user the feeling that nothing is happening and things are stuck. Is there a possibility to display a dialog as long as the action (shell script) is running?Something along the lines of "Now performing action X.
Info:
MacBook Pro, Mac OS X (10.7.3)
View 10 Replies
View Related
May 11, 2012
I want to erase a bunch of ancient floppy disks before dumping them and the drive, and I'd like to script an automated solution that will ensure that the media I'm erasing is in my floppy drive, and I'm not blasting one of my Hard Drives by mistake. I'm hoping that my script will be able to trace from the drive to the floppy to ensure that I've got the right target, else quit before doing any damage. The names of the floppy disks themselves are varied, but the name of the drive itself is stable and known. Disk Utility shows the name of the drive (Y-E DATA USB-FDU Media) and the name of the particular disk volume in the drive at the moment. I can find the floppies in the /dev/disk# special file, but I haven't found the drive itself.
I think Disk Utility automatically appends "Media" and maybe "USB-FDU" to a string that it pulls from somewhere, but I can't find that source. how/where Disk Utility digs up the info on the drive itself?
Info:
Mac Pro (Early 2008), Mac OS X (10.7.4)
View 2 Replies
View Related
May 27, 2009
I deleted the "hidden" private folder on my mac, but that still on trash. Now the big problems are:
- when I try to open Terminal to move the folder from the trash to my hard disk, appears a message that says: the administrator doesn't specified your shell with a legal value.
- I can't change the date and time;
- well almost nothing.
View 4 Replies
View Related
Jan 10, 2010
In attempting to get a modestly working zsh installation, I have accidentally removed my /Library/init folder, and thus cannot start up a shell any more. If someone could upload the contents of that folder (from 10.6.1 ideally) here.
View 2 Replies
View Related
Jun 24, 2012
Would there be a script I can run in Apple Script Editor that changes several folder icons inside another folder all at once?
View 14 Replies
View Related
Apr 20, 2012
What versions of Mac OS X has an Applications folder inside the users folder?
View 1 Replies
View Related
Apr 11, 2012
I had a simple folder action created in Automator that scaled images to 800 pixels whenever i added files to a specific folder. It does not work anymore. I have tried recreating the action in a new folder and all i get is a warning: "The action “Scale Images” was not supplied with the required data."
Info:
iMac, Mac OS X (10.7.3)
View 5 Replies
View Related
Apr 14, 2012
I'm new to ApplesScripting. I've found this script that I'd like to change:--This script will make a new folder on the desktop with current date and dialog box--format the date to 2010-11-19tell (current date) to get day & (it's month as integer) & (it's year as integer)set TheDateFormat to the result as text-- asks for folder name with date as default answerset TheFolderName to text returned of (display dialog "Name the folder" default answer TheDateFormat)--make folder with date & user entered texttell application "Finder" make new folder with properties {name:TheFolderName}end tellThe desired changes:- Date format should be: 150412 + a letter (a, b, c) if the folder to be created already exists.- Place the cursor at the start of name dialog, no selection active.- The new folders should be created in /Users/Hans/Dropbox/Jobs/Another question is related to execution of the script:- How can I start the script easily with a shortcut key or a Dock icon?- Is it possible to select client name from a plain text file containing client names in separate lines?- Is it possible to have zip files automatically unzipped to subfolder names with the zip package name?- Regarding the Dock icon I could even imagine that I drag a zip or other file from an email or the Desktop to the icon and that I only have to type the clients name to have the file moved to a new folder. user entered texttell application
View 1 Replies
View Related
May 10, 2012
Our environment has multiple Windows file servers, both 2003 and 2008. If one of these SMB shares is accessed from a Mac and the user creates a folder, will the ACLs on the share that are set to cascade actually cascade to this newly created folder? We've had issues in the past where ACLs that are supposedly set to cascade on a shared folder are not present on sub-folders created from Macs.Next question: if the share resides on a netapp device, do the same rules apply? The Macs are still connecting to these shared folders using the SMB protocol.All Macs are bound to our 2008 AD domain and use network accounts with local homefolders. The issue seems to happen when one or both of the following things happen:
1. A Mac user copies/creates a folder on a Netapp share and for some reason it doesn't inherit rights correctly
2. We move the folder from one share on an actual Windows server to the Netapp and it doesn't take permissions correctly.
Info:
MacPro 2x2.66GHz Dual Core Xeon, 4GB RAM,, Mac OS X (10.6.8)
View 2 Replies
View Related
Feb 28, 2012
I followed the instructions, but now I do not see any calendars to sync or any mail accounts to sync in the Info section of iTunes.
Info:
MacBookPro, Mac OS X (10.7.2)
View 1 Replies
View Related
Mar 7, 2012
Im trying to run an rsync command which copies a backup of a server services folder using a remote computer. The backup folder of services resides on the main system disk.
AR-ADL-MBP1-John:~ john$ sudo rsync -va -e --delete ssh admin@10.105.141.66:/Volumes/Server HD_mail/Data Store Backups /Volumes/ARINA temp
errors out with building file list ... rsync: link_stat "/Users/john/ssh" failed: No such file or directory (2) rsync: link_stat "/Users/john/admin@mail.arina.biz/Volumes/Server HD_mail/Data Store Backups" failed: No such file or directory (2)
I've also tried to open the server in finder and run the rsync without ssh. This works for non system disks but get permissions errors on this system disk rsync: readdir("/Volumes/Server HD_mail/Data Store Backups/M-W-F/Data_Stores/mail/259F2CAC-D0EB-4348-B85F-1257F8242E87"): Permission denied (13)
View 8 Replies
View Related
Mar 14, 2012
How can i open the files in the folder if you scroll to "--open file items of the name folder" you can see where I am struggling to run the script.How should this look to run, currently the script runs, with no errors or anything appearing in the folders.
[code]...
View 11 Replies
View Related
May 17, 2012
I need to move one or more files inside a folder to another folder.
View 4 Replies
View Related
May 29, 2012
I have a folder action set up to open movie files in a conversion app but every time I add a new file it loads all the files in the folder. How can i exclude a file that has already been opened by the folder action. I can't move the file due to queing up moves for conversion if the file is moved after it is opened the the program doesn't know where to look for it. Ive tried Filter finder items by last opened and set it as today but that did not work. It opened nothing. May I could set it up to know if the file has been there longer then 5 min that the folder action should not open it.
Info:
Mac Pro, Mac OS X (10.7.3)
View 14 Replies
View Related
Jun 27, 2012
if there is a way of having a list of image file names, searching for the images then putting them into a new folder? I'm guessing it can probably be done through mac scripting but I know nothing about scripting and genreally not great with technogy so ideally need step by step instructions!
View 6 Replies
View Related
Mar 13, 2012
I have thousands of music projects with a somewhat fixed folder hierarchy and I'm trying to first rename and then extract (move) certain files from their original location.
Here is the most common example of the hierarchy: ProjectName/Info/Setups/fixed name file (either a pdf, txt or jpg)
My goal is to have these files renamed after their parent folders, all the way up to the Project Name and then have them moved to a set folder, out of this dull dictatorship I've created, so my files would end up with a name like this: ProjectName - Info - Setups - fixed name file
Info:
iMac 20'', Mac OS X (10.6.8)
View 2 Replies
View Related
May 16, 2012
I'm trying to write a script that will open a specific folder. The only problem is that it needs to be run on multiple machines with different Hard Drive names. Here is a sample of the script that will work on my machine.
tell application "Finder" activate open folder "HDD:Volumes:USERData:Users:Staff:Name" end tell
Is there anyway to change "HDD" to whatever the current users Hard Drive is named?
View 2 Replies
View Related
May 23, 2012
I need to collect my students home workn which includes images, small film clips and text:
I use a FileMaker database
I have a FM script which
1 - copies the student ID
2 - opens the URL where the message is located
3 - I added this applescript I found here:
[code]...
Info:Mac Pro, Mac OS X (10.6.8)
View 6 Replies
View Related
May 23, 2012
I’ve found this script that copies the names of multiple selected files in the Finder to clipboard: try set theNames to {} tell application "Finder" repeat with i in (get selection) set end of theNames to name of i end repeat end tell set {TID, text item delimiters} to {text item delimiters, return} set the clipboard to theNames as text set text item delimiters to TIDend try I need to prepend to each result a string like [URL] where “folder” is the parent folder relative to the files.
View 1 Replies
View Related
May 29, 2012
Does anyone have some experience running multiple folder actions at the same time?I've written a Applescript folder action that processes some files. When adding some files, the script starts and all goes well. The processing of each file takes a few minutes, but all files are processed correctly.However, when adding some new files to the dropfolder, while the folder action is all ready processing other files dropped a few minutes earlier, the process that is all ready running immediately aborts and the folder action is relaunched on the new files, leaving the old files for what they are.The same problem occurs with multiple folders, each having a folder action attached. When dropping files in "Folder A", the script starts processing. But if someone droppes files in "Folder B", The script of folder A aborts, and the script of folder B starts processing. When adding more files to the folders, the result is the same. In some casses, when the last dropped files are processed, the os continues where the operation was aborted on the previous files. But this not always happens. To make things worse, when you remove the items from the folders afterwords, the folder actions starts running again on items no longer present in the folder ..Does anyone know how I can prevent the folder action being aborted when new files are dropped and placing the new files in "Hold", until the previous files are processed? How can I prevent a folder action being aborted when a item is dropped into another folder?I've written a small script to test this behaviour. Just create one or more folders and attach the script below. Drop a item into the folder, wait a few seconds and drop another one in the same or another folder. To monitor what happens please check the console. [code]
Info:
Mac OS X (10.6.8)
View 2 Replies
View Related