|
|
Access music in iTunes without adding to library
The only issue with this is that it appears you have to 'publish' the directory / disk / ipod for it to update the listings. It makes sense that it would, but it would be really nice to just have it look at my downloads directory and auto-share those mp3s i grab.
Access music in iTunes without adding to library
I just whipped up this script which automatically re-shares your default folder whenever you download something. You need to save it as a folder action and have UI Scripting enabled in assistive devices. It could be modified to detect file type I'm sure and it may also be possible to have it detect the path of the folder which it is attached to and automatically put it into MusicPublisher's settings. YMMV ---
Access music in iTunes without adding to library
I've expanded the script so that it now will automatically tell MusicPublisher to publish the directory to which the script is attached. You can attach it to multiple folders and it will always share the most recent one you've moved a file to. It also hides the application. Here's the new version.
on adding folder items to this_folder after receiving added_items
set thePath to POSIX path of this_folder
tell application "MusicPublisher"
activate
end tell
tell application "System Events"
tell process "MusicPublisher"
if (exists of (button "Stop" of window 1)) is true then
click button "Stop" of window 1
delay 2
end if
end tell
tell application "MusicPublisher" to quit
delay 2
do shell script ("defaults write org.tynsoe.musicpublisher source " & quoted form of thePath as string)
tell application "MusicPublisher"
activate
end tell
delay 2
tell process "MusicPublisher"
click button "Publish" of window 1
set canHide to false
repeat while canHide is false
delay 2
if exists (sheet 1 of window 1) is false then
set canHide to true
end if
end repeat
delay 2
end tell
set visible of process "MusicPublisher" to false
end tell
end adding folder items to
--- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.37 seconds |
|