Skip to content

Commit 1c49ee8

Browse files
committed
a note about permission issues
1 parent 9d09de3 commit 1c49ee8

File tree

1 file changed

+39
-20
lines changed

1 file changed

+39
-20
lines changed

README.md

Lines changed: 39 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,56 @@
11
Create-Playlist.workflow
22
========================
33

4-
An OSX Automator Workflow for creating relative-pathed m3u playlists from audio files in the selected folder.
4+
An OSX Automator Workflow for creating relative-pathed m3u playlists from audio
5+
files in the selected folder.
56

67
Installation
78
------------
89

9-
To install, simply `git clone https://github.com/bmatcuk/Create-Playlist.workflow.git ~/Library/Services/Create-Playlist.workflow`.
10-
You may need to "open" the workflow to get it to appear in the Services menu.
11-
To do that, just navigate to ~/Library/Services and double click Create-Playlist.workflow to open it in Automator.
12-
You don't need to do anything here; just close Automator.
10+
To install, simply `git clone
11+
https://github.com/bmatcuk/Create-Playlist.workflow.git
12+
~/Library/Services/Create-Playlist.workflow`. You may need to "open" the
13+
workflow to get it to appear in the Services menu. To do that, just navigate to
14+
~/Library/Services and double click Create-Playlist.workflow to open it in
15+
Automator. You don't need to do anything here; just close Automator.
1316

14-
To use, open a Finder window and locate a folder for which you want to create a playlist.
15-
Right click on this folder and select Services, Create-Playlist.
16-
In a moment, a file will be created in the current folder with the same name as the folder you selected and the .m3u extension.
17-
You can also select multiple folders.
18-
Right click and select Services, Create Playlist as before and you'll get a .m3u file for each folder selected!
19-
Note: There may be a limit to the number of folders the workflow can process at a time...
17+
You may also encounter permission problems (it will appear locked in
18+
Automator). To fix that in your terminal, run the following commands:
2019

21-
This script will find .mp3, .aac, .m4a, .wav, .wma, .flac, .ogg, .pcm, .aiff, and .alac files.
22-
If there are any others you think it should support, file an Issue.
20+
```bash
21+
chown -R "$(id -un):$(id -gn)" ~/Library/Services/Create-Playlist.workflow
22+
chmod -R 0755 ~/Library/Services/Create-Playlist.workflow
23+
```
24+
25+
The first command ensures that the current user owns the files, and the second
26+
ensures that you have read, write, and execute permission.
27+
28+
To use, open a Finder window and locate a folder for which you want to create a
29+
playlist. Right click on this folder and select Services, Create-Playlist. In a
30+
moment, a file will be created in the current folder with the same name as the
31+
folder you selected and the .m3u extension. You can also select multiple
32+
folders. Right click and select Services, Create Playlist as before and you'll
33+
get a .m3u file for each folder selected! Note: There may be a limit to the
34+
number of folders the workflow can process at a time...
35+
36+
This script will find .mp3, .aac, .m4a, .wav, .wma, .flac, .ogg, .pcm, .aiff,
37+
and .alac files. If there are any others you think it should support, file an
38+
Issue.
2339

2440
How Does it Work?
2541
-----------------
2642

27-
This is an [Automator](http://macosxautomation.com/automator/) workflow that runs a simple shell script.
28-
The script loops through the arguments (the selected folders, in this case), switches to that folder, and then searches for audio files recursively.
29-
Whenever an audio file is found, it is appended to the m3u file using some appropriate formatting.
43+
This is an [Automator](http://macosxautomation.com/automator/) workflow that
44+
runs a simple shell script. The script loops through the arguments (the
45+
selected folders, in this case), switches to that folder, and then searches for
46+
audio files recursively. Whenever an audio file is found, it is appended to the
47+
m3u file using some appropriate formatting.
3048

3149
Why?
3250
----
3351

34-
My car can read music off a USB keychain drive.
35-
It seems to understand artists and albums from the MP3 headers, but it just ends up playing songs in alphabetic order by filename.
36-
I could rename all my files so they'll end up playing in the order I'd like... but my car also understands m3u files.
37-
It seemed easier to make this work =)
52+
My car can read music off a USB keychain drive. It seems to understand artists
53+
and albums from the MP3 headers, but it just ends up playing songs in
54+
alphabetic order by filename. I could rename all my files so they'll end up
55+
playing in the order I'd like... but my car also understands m3u files. It
56+
seemed easier to make this work =)

0 commit comments

Comments
 (0)