|
1 | 1 | Create-Playlist.workflow |
2 | 2 | ======================== |
3 | 3 |
|
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. |
5 | 6 |
|
6 | 7 | Installation |
7 | 8 | ------------ |
8 | 9 |
|
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. |
13 | 16 |
|
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: |
20 | 19 |
|
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. |
23 | 39 |
|
24 | 40 | How Does it Work? |
25 | 41 | ----------------- |
26 | 42 |
|
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. |
30 | 48 |
|
31 | 49 | Why? |
32 | 50 | ---- |
33 | 51 |
|
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