|
|
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.11 seconds |
|