Itunes = applescript = appleworks
hello, I have written a script that backs up selected songs into an appleworks database. It backs up the name of the band, the song, the lyrics, etc.
Here is where I am stuck (on two counts).
1. How do I back up the album artwork out of itunes, and into appleworks. What are the applescript commands to get the jpg for example?
2. Can appleworks database even store images?
The script looks like this (next post) and works sans the album artwork.
tell application "iTunes"
activate
set these_tracks to the selection of browser window 1
set n to count of items of these_tracks
repeat until n = 0
set this_track to item n of these_tracks
--a whole bunch of fields here
set this_artist to artist of this_track
-- end of relevant bit
tell application "AppleWorks 6"
activate
using terms from application "AppleWorks 6"
tell database layer of front document
set n to the count of records
repeat n times
make new record at end
set current record to last record
-- this puts my itunes info into the right field
set value of field "artist" of last record to this_artist as string
-- end of relevant bit
set current record to last record
end repeat
end tell
end using terms from
end tell
set n to (n - 1)
end repeat
end tell
Similar Messages
-
AppleScript & AppleWorks Spreadsheet
For years I have been using AppleWorks spreadsheets on my Quadra (ease-of-use, nostalgia, old habits die hard, etc.). After eventually deciding to transfer some of them to my G5 and work with them (as well as creating new ones) in a newer and faster environment, I started fiddling around with using AppleScript to automate some of the repetitive tasks within each document, especially for the new ones. One task appears to have either no solution or a particularly well-hidden one. Except for the example given here, all the other scripting is working to my satisfaction.
The relevant part of the script is:
tell application "AppleWorks 6"
activate
make new document at front with properties {document kind:SS}
tell spreadsheet of document 1
select menu item "Display…" of menu "Options"
end tell
end tell
The line "select menu item "Display…" of menu "Options" brings up a window as pictured here.
I would like to be able to use AppleScript to uncheck the checkboxes labelled "Row Headings" and "Column Headings" so that the whole script (of which this is only a small part), can run without ANY manual intervention. So far, no luck. The arrow keys and tab key (with and without modifier keys) have no effect within this window. If you hold down the command key for a a few seconds, the window displays command-key equivalents for the checkboxes, as pictured here;
Turning on GUI scripting by enabling access for assistive devices in System Preferences and using calls to System Events with various permutations of the "keystroke" command had no effect. To try to discover if the items in the window were actually UI elements and of what type, I used the "get entire contents of window ... " approach, which worked beautifully in the main document window. The calls I used, inserted after the line ""select menu item "Display…" of menu "Options" and before the two "end tell" lines, were:
tell application "System Events"
tell process "AppleWorks 6"
get entire contents of window 1 -- each of these four lines,
get entire contents of window 2 -- and other various similar attempts, was used by itself
get every item of window 1 -- (all included consecutively here to save space)
get every UI element of window "Display"
end tell
end tell
The line "get entire contents of window 1" only took effect once the "Display" window had been dismissed, and then it quite happily returned the contents of the main document window. The others returned either: "System Events got an error: NSReceiverEvaluationScriptError: 4" or "System Events got an error: Can't make every item of window 1 of process "AppleWorks 6" into type reference."
My guess is that the window "Display" is a modal dialog which is not letting anything else happen until it is dismissed. In the script, the next command after "select menu item "Display…" of menu "Options" waits until the window has been dismissed.
I have also tried saving the document (once the row and column headings have been hidden) as a spreadsheet template. That ALMOST achieved what I wanted. The new spreadsheet template shows up in Starting Points as "Spreadsheet" with the previous (pre-defined) template being renamed to "Standard SS". When clicking on the new template in Starting Points, a new SS document opens up with the row and column headings hidden, but when a new SS document is created using AppleScript, it uses the pre-defined template (headings not hidden). So near yet so far!
If anybody has any suggestions, tricks and workarounds for both AppleScript and AppleWorks, I am willing to try them out.
If I can't get this (small) part of the script to work without having to use the mouse or keyboard, then it's not the end of the world. But I do like sitting back and watching the computer do what it is good at - repetitive tasks, etc. - from start to finish.
- - - break for food and thought - - -
While not having found the reason for AppleScript's inability to access the "Display" window, I have worked out a way to achieve what I want. Even though the AppleScript command "make new document at front with properties {document kind:SS}" causes AppleWorks to ignore the customized template document and use the original, pre-defined one, the following routine makes a copy of the customized template document, converts it from a stationery document (template), renames it and opens it.
tell application "Finder"
set TemplateCopy to duplicate file "AppleWorks SS Options.cws" of folder "Templates" of folder "Starting Points" of folder "AppleWorks 6" of folder "Applications" of startup disk to desktop
set stationery of TemplateCopy to false
set NewFileName to "My spreadsheet.cwk"
set the name of TemplateCopy to NewFileName
open file NewFileName
end tell
One other approach which might have led somewhere was to explore the ability to prevent row and column headings from printing, even if they are displayed on screen. Scripting the print end of things may not have been easy, if possible at all, and would have required much more complexity in scripting. Also, I would prefer the screen display to match what is going to be printed.
The end result I wanted has been achieved, although using a different approach than I expected. Given the legacy status of AppleWorks 6 and its oddities of behaviour with AppleScript (even though much functionality was added and many bugs fixed from version 5), I doubt that the original approach will ever work, although if anybody has some ideas/knowledge, etc., I am willing to listen.Scripting printing in AppleWorks
As a spin-off from my efforts described above, I think I have found a way of using AppleScript to save documents from AppleWorks as PDF's. At the moment the script is pretty wordy and maybe not as efficient as it could be, but it works (almost 100% of the time).
In the Print dialog, the tab key can be used to move between the various elements in the dialog. Depending on which one has been arrived at after each press of the tab key, you can select and do various things by using the space key, up and down arrow keys and the return key. I'm not sure if they can all be consistently emulated using the keystroke command from within System Events, as here I have restricted myself to just the tab, down arrow and return keys.
When the Print command is issued (via keystroke "p" using command down), the Print dialog opens up.
On my system, the number of copies is highlighted by default when the Print dialog opens and by pressing the tab key five times the PDF button is selected (although it's not all that obvious). The down arrow then activates the dropdown menu - press it again and the first item in that menu is highlighted. Press Return and that item is accepted and the Save dialog comes up.
On my system it takes one press of the tab key with shift down to move "back" from the Save As text field to the Save button (originally I had been using ten presses of tab in the "forward" direction), at which point Return selects it and the document is saved as a PDF. As with the Print dialog, the arrow keys, space key and Return can all be used to do/select various things along the way.
In the script I have inserted a number of delays to give things time to happen. Originally they were longer and allowed me to observe what was being selected at each emulated press of the tab key. Those that are one second or longer need, at least on my system, to remain fairly long otherwise I get errors such as "connection not valid" and the script hanging to the point where the only way out was to force quit. I would assume that some things are timing-dependent and need a specific amount of time before the next action can be performed. If anybody tries my script and finds odd things happening, I would suggest lengthening the delay times as the first thing to try. Also, on various System versions, there might be a difference in the number of tab presses required to move from the default highlighted attribute to the PDF and Save buttons.
The script as it stands at the moment requires at least one AppleWorks document to be open (and checks for that to avoid an error at the start). It could be modified to be a droplet (and possibly open only one document at a time from those dropped onto it, as AppleWorks would have a limit of how many documents it could have open concurrently), but I will get around to doing that later on.
The script itself:
tell application "AppleWorks 6"
activate
set HowManyDocs to count of documents
if HowManyDocs > 0 then
set DocNames to name of every document
repeat with CounterA from 1 to HowManyDocs
try
set ThisDoc to (item CounterA of DocNames)
select document ThisDoc
tell application "System Events"
tell process "AppleWorks 6"
keystroke "p" using command down -- brings up Print dialog
delay 0.1
tell window "Print"
delay 1 -- or longer
repeat with CounterB from 1 to 5
keystroke tab -- tabs through to PDF Button
delay 0.1
end repeat
key code 125 -- down arrow - selects PDF dropdown menu
delay 0.1
key code 125 -- down arrow - selects first item in PDF dropdown menu
delay 0.1
keystroke return -- accepts selection and brings up Save dialog
delay 1
keystroke tab using shift down -- tabs back 1 to Save button
delay 0.1
keystroke return -- "presses" Save button
delay 2 -- or longer
end tell
end tell
end tell
end try
close document ThisDoc -- closes each document after it is "printed" to PDF
end repeat
else
display dialog "You have no AppleWorks documents open." & return & "Open some and then run this script again."
end if
end tell -
Need Help Creating an iTunes AppleScript
Long story short: I keep my video files on an AirDisk, and when I sync my iPhone with my laptop when I'm away from home, the files are listed as dead tracks with the ( ! ) icon next to them. The simplest way I've figured to relink them is to select the video in iTunes and choose Get Info. I'd like to automate the process and am trying to write an AppleScript using parts of other scripts, but it isn't working. Here's what I've got so far:
{code}
tell application "iTunes" to activate
if selection is not {} then
set sel to selection
repeat with this_track in selection
tell application "System Events"
tell application process "iTunes"
tell menu bar 1
click menu bar item "Get Info"
tell application "System Events"
tell process "iTunes"
click button "OK" of window 1
end tell
end tell
end tell
end tell
end tell
end repeat
else
display dialog "Select some tracks first..." buttons {"Cancel"} default button 1 with icon 2 giving up after 15
end if
{/code}tell application "iTunes"
activate -- Set 'iTunes' as front most application.
set sel to selection
if sel is not {} then -- If selection exists, continue.
repeat with this_track in sel -- Cycle through the selection.
tell application "System Events" to tell process "iTunes" -- Focus GUI actions on front most window of 'iTunes'.
keystroke "i" using command down -- Selects 'File, Get Info' menu item.
delay 0.1 -- Optional, user defined delay, in seconds.
keystroke return -- Clicks the defaults ('OK') button of front most window.
end tell
end repeat
else -- No track selected, present a dialog box.
display dialog "Select some tracks first..." buttons {"Cancel"} default button 1 with icon 2 giving up after 15
end if
end tell -
Itunes applescript not working
Hi there i found a script on Doug's applescript website to allow itunes to automatically add new files from a folder into the itunes library.
the script is:
property DELAYTIMESECONDS : 5 -- How long to wait between checking file size.
on adding folder items to thisFolder after receiving theItems
repeat with f in theItems
set oldSize to 0
set newSize to -1
-- When newSize equals oldSize, it means the copy is complete because the size hasn't changed.
repeat while newSize is not equal to oldSize
-- Get the file size.
set oldSize to size of (info for f)
delay DELAYTIMESECONDS
-- Sample the size again after delay for comparison.
set newSize to size of (info for f)
end repeat
-- HERE BEGINS THE ITUNES SPECIFIC STUFF
tell application "iTunes"
launch
try
add f
(* UNCOMMENT OUT NEXT 2 LINES IF YOU WANT THE FILE REMOVED AFTER IMPORT
set the file_path to the quoted form of the POSIX path of f
do shell script ("rm -f " & file_path)
end try
end tell
-- HERE ENDS THE ITUNES SPECIFIC STUFF
end repeat
end adding folder items to
the folder i am monitoring is on an external harddrive attached to my macbook via aipport express basestation.
the script as far as i can tell is not working. i have enabled folder actions and attached that script to the folder i want to monitor... any ideas?
thanks in advance.http://dougscripts.com/itunes/ has a Who's Doug link to http://dougscripts.com/itunes/faq_cont.php#about wherein at the bottom is a section entitled *+Drop me a line+*
-
Where is the Applescript to Select Enabled or Disabled Tracks?
Hi. I've been trying to locate this Applescript. It gets mentioned in the Read Me for one of the Applescripts from Doug's iTunes Applescripts called: "Move En|Disabled" which by the way is not working because it is not unzipping correctly. I want to be able to look at playlists that are chosen for the iPod, and easily remove all the disabled tracks in them which are taking up precious room in the iPod. I can't locate the Applescript that gets mentioned in that Read Me, but it sounds like it would do the job since it's called "Select En|Disable". This is what it says:
"The core of this script was shamelessly ripped off from Apple's "Select En|Dis-Abled" script. (Does Apple credit us for the scripts it rips off from us? I think not. "
Thanks for any help! And if anyone has a working version of that Applescript from Doug's site, which again, is called "Move En|Disabled" and/or Apple's "Select En|Disabled", please either email them to me or point me in the right direction. Thanks!Gary, thanks for your help. I do have those scripts, but they don't include the one I'm looking for, which I guess doesn't exist. The one I'm looking for, would be called "Select Enabled/Disabled Tracks", whereas this one is called Disable/Enabled Selected Tracks, which does something entirely different. Ideally after you choose the Applescript that I'm talking about, you would be given a choice: "Select Enabled or Disabled?" Or I suppose, it could be done in two separate scripts, one for selecting enabled tracks, and one for selecting disabled tracks.
Good idea on emailing the man himself, Doug. It's hard to believe that with all the scripts out there, this one doesn't exist. Maybe the author of that "read me" mistakenly named the Appplescript from Apple that I thought existed. -
ITunes 10 + Automator. Where's "Play action?
After I updated to iTunes 10, I lost the most iTunes actions in Automator (primarily "Play").
iTunes system gives me an error that those codes do not exist and I should update my iTunes to 4.6 or higher...
Any solutions?
Thank youThe bad news is, iTunes 10 is missing the following actions:
Add Songs to iPod
Add Songs to Playlist
Ask for Songs
Change Case of Song Names
Get Selected iTunes Items
Get the Current Song
Import Audio Files
Import Files into iTunes
New iTunes Playlist
Pause iTunes
Play iTunes Playlist
Remove Empty Playlists
Set Info of iTunes Songs
Set iTunes Equalizer
Set iTunes Volume
Set Options of iTunes Songs
Start iTunes Playing
Start iTunes Visuals
Stop iTunes Visuals
Update iPod
The good news is, iTunes' AppleScript dictionary appears to still contain the ability to script all of these items, which means that it should be easy for now to create AppleScript actions to replicate these, and that it should at least be possible for these actions to return. Will they? I certainly hope so!
Shawn -
Resetting the iTunes Library in iMovie HD Jan. 2006
Does anyone know how to reset the iTunes Library in iMovie?
I have manually deleted tracks in iTunes .. which are not visible in any playlist or the library, but they are visible in iMovie's audio tab wher the iTunes Library exists.
I tried deleting some of the ".plist" .. but I didn't want to erase any iTunes plist in fear of losing my playlists.
I looked at "Doug's iTunes AppleScripts" and found nothing that would help..
Any thought?I'd say that quitting iMovie and relaunching it ought to do it. If not, quit and restart iTunes as well. That should force it to update all of its stuff.
-
ITunes Bug/Malicious Software or Corruption?
On my wife's MacBook, iTunes is showing that her entire ~800 song library has been played through in the last 10 days (according to Last Played Date), which is nowhere near the case (she listens to only a handful of songs in a day). It shows songs playing for stretches of time during which she was asleep or in class (for anywhere from a few songs to a few days), and in which we are completely certain she was not listening to music (or at the very least, not for that duration).
Aside from the weirdness factor, this is very annoying since I have her set up using smart playlists that are based on the Last Played field, which are now completely hosed. I'm a fairly experienced computer (and Mac) user, and am completely stumped.
Other pertinent information: She is using a 1G iPhone, which is the only device synced to her iTunes library. Our iTunes libraries are shared with each other, but I am seldom connected to hers, and always disconnect when I'm done. We have Two AppleTVs, neither of which is connected to her iTunes library for syncing or streaming. She doesn't have any iTunes plugins, and has no iTunes AppleScripts.
Thanks for any help you can offer.it's clear that this must be a problem with iTunes or a virus
Actually, it's neither.
You burned an audio CD.
Audio CDs do not have any info on them.
iTunes looks up the info for audio CDs from Gracenote.
Gracenote gets the info from users who submit CD track names.
The CD is identified by Gracenote by the number of songs and the length of those songs, so it is possible to have the same CD identified as number of different titles.
Insert the CD on the computer it was burned with.
Open iTunes, select the CD then menu Advanced -> Submit CD trck names.
This will send the info to Gracenote.
When you insert it into another comnputer, go to menu Advanced -> Get CD track names and it should get the info you sent. -
So I figured out how to make an applescript that makes a genius playlist based on the currently playing track, but occasionally during the course of a genius playlist a song will play that I want to make a new genius based on. But while in the genius playlist if I push the key command I created for the script it hits the repeat button rather than the genius button. I figure it does this because it's a different window, therefore, the genius button obtains a new number, first of all: I need to know what that number is and second I need help with the code.
I then tried a rewrite. I figured an if/else statement would suffice:
I don't know what the proper format for an if/else statement is with applescript, my only experience if with C+, but this is what I have:
tell application "iTunes"
if window "Genius" is showing then
tell application "System Events"
click button ? of window "iTunes" of application process "iTunes"
end tell
else
tell application "System Events"
click button 8 of window "iTunes" of application process "iTunes"
end tell
end if
end tell
When I run this it gives me an error saying "Can't get window Genius". So what is the Genius window called? What's the number of the genius button in this window? And how can I format the if/else if this is incorrect?
Thanks for any help anyone could give.There are a couple of ways to find out what you want:if (name of current playlist) is "Genius" then
end ifThat will just identify the current song is playing in the Genius playlist.
If you want to then activate the Genius playlist so that you can have System Events push a button, do this:set view of front window to playlist "Genius"Take a look at [Doug's AppleScripts for iTunes|http://dougscripts.com/itunes>. I didn't look all through the site, so I don't know if he has a script for what you are trying to do.
This will help you identify the button number:tell application "System Events"
get description of buttons of window "iTunes" of application process "iTunes"
end tellThey will be listed sequentially. Unfortunately, they didn't name the Genius button. If they did, you could use button "Genius" as the target of the click.
I think you will also have to tell it to select the currently playing track to get it to create the genius playlist based on that.
Take a look at the iTunes Applescript library. In Applescript, double-click on iTunes in the Library list (cmd+shift-L) to show it. -
Cannot Upgrade to iPhoto 8.0.1
I have iPhoto as part of iLife 09. When I attempt to upgrade to iPhoto 8.0.1 after downloading I receive a message that my current iPhoto is ineligible.
Has anyone any ideas?The key, and I am not clear on the answer, is that all iLife applications including iPhoto must be at the root level of the applications folder - if they have been placed inside another folder (like an iLife folder for example) to "tidy up" the applications folder Software update does not find them and they will not update
Be sure that iPhoto is just loose in the applications folder - not cleaned up inside another folder
My applications folder is an example (a mess - but it all works and I very seldom go into it - everything I use is in the DOCK
2006 World Book
Address Book
Adobe Help Viewer 1.1
Adobe Photoshop Elements 6
AppleScript
AppleWorks 6
Applications 22-07-41
Automator
Backup
BuildBooklet
Calculator
Carbon Copy Cloner
CD Spin Doctor 2
Chess
Cooliris
Dashboard
Data Backup
Deimos Rising
DesignPro
Dictionary
DiskTracker 2.2.2 (Mac OS X)
DVD Player
EXIF Viewer
ExportToArchive.pkg
Exposé
FAXstf X
Firefox
Flickr Uploadr
Flip4Mac
Freefall
Front Row
Full Tilt Poker
GarageBand
Google
GrandPerspective
Harmony Remote
HoudahGeo
iCal
iChat
iDVD
iDVD 2
Image Capture
iMedia Browser
iMovie
iMovie (previous version)
Installers
Internet Explorer
iPaste
iPhoto
iPhoto dB File Backup
iPhoto Library Manager
iPoker 3
iSync
iTunes
iWeb
iWork
JavaForMacOSX10.4Release5.pkg
Kitchen
Kitchen 1.0
Mac Slides Publisher
MacDraft PE Demo
MacFamilyTree
Mail
Marble Blast Gold
Microsoft Office 2004
MPEG Streamclip
mtrace.txt
Name Mangler
Nanosaur 2
OnyX
Otto Matic™
OWC Shareware Collection.dmg
Palm
Photo Booth
PhotoPresenter
Picasa Web Albums Uploader
PixelNhance
PokerPages Software
PokerStars.net
Posterino
Presto! PageManager 4
Preview
PSM-2[1].6v85.5.dmg
Quicken 2002 Deluxe
Quicken 2006
QuickTime Player
REALbasic
RealOne Player
RealPlayer
Roxio Mac Software
Safari
Smasher
Sole Possession
SolidWorks eDrawings
Spaces
Stickies
StuffIt 11
StuffIt Expander 9.0
StuffIt Standard 9.0
SuperDuper!
System Preferences
TextEdit
The Sims
Time Machine
Transmit
Utilities
Virex 7.5
Virtual PC
VisualRoute
WeatherBug Lite
Windows Media Player
World Book folder
Xee
Zinio
LN -
Finder won't launch - tried everything - HELP!!!
Okay...
So following all of the sudden, the finder won't launch. Clicking on it on the dock doesn't work, and I can't use force quit to relaunch it (obvious, since it wasn't launched in the first place). Rebooted several times, to no avail. Further noticing, that only a few apps will open (Safari, Mail, TextEdit), but others won't, and even then, you can't interact with anything on the desktop (i.e., opening a text file with Safari). Things like iTunes or AppleWorks won't open at all, both are which essential to me.
I've tried booting up in Safe Mode. Nothing. I tried repairing the permissions. Nothing. I tried running from the Install Disc, and repairing via Disk Utility (several times). Nothing. In fact, it did note several errors, but was unable to repair the drive. Also tried archive and restore off the 10.3 Disc 1, but wouldn't let me, as it said 10.4.9 was newer and couldn't repair through the older disc.
So does anybody have any solutions on this? I upgraded to Tiger via a downloaded update, so I don't have the Tiger disc to repair through. And I certainly don't want to go through the whole debacle with a complete reinstall with a slave drive. Anything would be greatly, greatly appreciated.Well that sounds like it could work...and I really should get a backup...
BUT!
Saving that as the final straw, would there be any cheap (e.g. free) solutions left? I'd rather wait to buy another external drive, since I'm trying to save money now, so any immediate and cheap solutions would work best.
Hmm... I upgraded to Tiger via download, so I don't have the boot CD for it. But since I already have Tiger, would it be at all possible to get a free 10.4 boot CD to help with this problem? If I explain my plight to Support, do you think they could spare one, since it's very probable 10.4 Disk Utility would work, since the only reason 10.3 couldn't was because it was too low?
If that doesn't work, I suppose the only thing left to do would be to carry through and clone to an external. But first, do you think I could get a 10.4 disc for my problem, or would that be "forbidden" for some reason? -
Under File menu Open File will not open local files even those downloaded to the desktop by Firefox 5.
If I double click on HTML file it does open
Reinstalled. Same behaviour. Default Browser set correctly.
Permissions set correctly. Odd behaviour.Are you sure it hasn't imported?
Check for the track names (trackname only, not Album or Artist)) and see if they have a blank Artist and Album, because WAV files have no MetaData, so are kind of stupid as far as knowing anything about the Artist, Album & track id.
You can't search by 'Untitled' either as there is literally, no name at all, but iTunes does pick up the actual physical track name in Finder and uses that. As an example, if you renamed your Aerosmith WAV file from say 'Toys In The Attic' to 'Love Song' it would import the track as 'Love Song' as that's all it can go by.
There are a few iTunes AppleScripts that let you import from a file of WAV music, by looking at the enclosing Album in the enclosing Artist as that's how most PC progs create the WAV file structure.
Mike -
Missing ID Tags & Other Problems with Music Transfers
Hello,
I have been having some inconsistent problems with adding songs to my main iTunes Music Folder. Occasionally, songs will transfer without some of the ID tag information, despite the transfer (or consolidate) method used. Let me explain...
My main 30000 song and 170 GB iTunes database is located on my PowerMac G5 1.8 GHz DP at home. I usually rip small portions of my CDs on the road via my PowerBook G4 1.5 GHz (assuring that all of the tag information is correct). Once home, I transfer the iTunes Music Folder (usually only 1 GB big) from my PowerBook to the Desktop of my G5. From there, I drag the folder onto my iTunes window and allow it to duplicate directly into my large iTunes Music Folder. Once done, I delete the temporary iTunes Music Folder from both the PowerBook and the G5. I also delete the iTunes Library and iTunes Music Library.xml files from my PowerBook before starting up the process with another batch of CDs. This is how I have built most of this database and only recently begun to have problems. The problem songs always retain the song name and, since I have always used the default ID tag setting, most songs show version 2.2 to 2.4.
In my troubleshooting, I tried to make completely new iTunes Library and iTunes Music Library.xml files by using this same method with my entire main iTunes Music Folder (yes, it took a long time to finish and I had a clone for backup). Suprisingly, almost 10% of those songs suffered from the same problem! Reattempts with smaller transfers showed no change. In this process, I also noted that some song files transferred, but showed NO signs in the new iTunes Library!
As I am a big fan of the iTunes AppleScripts by Doug Adams, I have ways to discover and correct these problems. However, I still would like to find out what is causing it. Does any of this sound familiar to anyone? Would converting every song to the ID tag version 2.4 make any difference? Obviously, this is my most prized database of information and I want to protect it, as well as administer any preventitive maintenance that it needs for good health.
If we learn from our mistakes, then I obtained my PhD years ago,
Dr. Z.It shouldn't matter what size your library is - if the information is in your files then it should get imported.
1. Are you sure your problematic mp3 files are in fact valid mp3 files? If you open Terminal.app, and type this (substituting your mp3):
hexdump -C -n 30 ~/Desktop/Sample.mp3
You should see some hex & ASCII come back - for example:
00000000 49 44 33 03 00 00 00 03 13 68 54 59 45 52 00 00 |ID3......hTYER..|
00000010 00 15 00 00 01 fe ff ff ff 00 7f 00 7f 00 |..............|
All id3v2 mp3's begin with "ID3" and the 4th byte represents the id3v2 tag version (2,2, 2.2.1, 2.3, 2.4); mp3's with an id3v1 headers are a little odd, but they generally begin with "FF FB" or "FF FA". I've seen moov files masquerading... all kinds of things. These won't hold tag data, and so would exhibit the behavior you describe. I myself got duped into making these abominations by using QuickTime to select a chunk of an mp3 and renaming to "file.mp3" - when it was a full blown quicktime movie that it really exported as.
2. Are you sure the information exists within your file at all? All tags get written back into the file (except I think rating and certainly playcount). You can use any number of utilities to get at the data, some easy (python/perl utilities) or that require compiling (id3lib, taglib). You can get use the above method (with a longer number than 30) or a hex editor and look for the values manually as well.
Using for example PyID3 (http://icepick.info/projects_old/pyid3/), download & extract; open a Terminal.app window and type:
export PYTHONPATH=/Some/path/to/YOUR/PyID3_folder
(or you can just type up the the = and drag-n-drop the folder onto the window & hit return. Then type:
python -c 'import id3'
Then in the examples folder, drag-n-drop the "listid3v2.py" script onto that same terminal window/session, and then an mp3 file (and hit return). If whatever information is missing from there, it isn't in your file. Note: PyID3 might have some issues with a v2.4 tag (specifically year is carried on the TDRC tag, and TYER is obsoleted). You can get an v2.4-enabled id3lib binary here:
http://members.verizon.net/pucklock/id3Infiltr8/IDInfiltr8.htm
Find "id3info" in the support folder, and drag-n-drop that binary onto a Terminal.app window, followed by your mp3 file. It should spit back all your info (except Grouping). The application itself should do much the same, just not the full breadth of tags available - just use it on copies.
3. Converting to a different tag version wouldn't impact most tags (year being 1 major exception) - the other conversions (latin1, unicode, blahblah) woudn't change anything if you use mainly ASCII text. It could if you're big into Ukranian Progressive Polka - and used Cyrillic to tag everything. -
Totally confused--simple library question
Hi,
OK, I'm at a loss. I've used computers forever, resisted iTunes forever, finally decided I'd better stop being a dinosaur. I can't accomplish what I'm trying to do though...maybe someone can help.
I mostly use my Macbook Pro. It's running out of space, and certainly doesn't have room for my huge MP3 collection. So I have all my songs in an "MP3s" folder on my Mac Pro downstairs. Inside the "MP3s" folder I've got folders for each letter--"A", "B", etc--in which I've meticulously filed the songs sorted by artist. The MP3s folder is shared over my network.
ALL I WANT TO DO.....is be able to start iTunes on my laptop, have iTunes find the MP3s folder on the network, look inside that folder, show the letter-based folder structure I've created in the main iTunes window, let me navigate to a song, and play it. Every time. No adding songs, subtracting songs, managing songs, or messing about with my own custom structure.
In iTunes preferences, I pointed the Library to the MP3s folder. But nothing at all shows up in iTunes. If I go to Finder and double-click a song in one of my MP3s subfolders, iTunes starts, plays the song, and then I have that song showing in the iTunes window by itself. That's not how I'd pictured this happening.
Can anyone tell me what I'm doing wrong? Is this even POSSIBLE with iTunes?
It's the difficulties trying to get simple things like this set up that put me off using iTunes for so long in the first place, much as I can see it's the way everything's done nowadays.....canadave wrote:
Hmmm...maybe we're talking past each other, perhaps I wasn't clear (or maybe I'm just being dense). If I tell you "I want to be able to download an MP3 song using uTorrent or Cabos to my download folder, then move it to my MP3s folder on my Mac Pro, and then have that song appear in iTunes when I start iTunes again", is iTunes smart enough to do that on its own? Or do I have to actually click Add to Library to add any new songs I've downloaded separately?
Sorry for not following you....I do get the concept of the Library as a "pointer" of sorts to the actual files.
not a problem canadave...
short answer, no itunes is not smart enough to automatically find songs in a folder. long answer spews on and on legally downloading music and how itunes has things in place to do its part to make that a less likely option for users, etc. i wont go into that, but perhaps a watched folder or some other smart folder automator action might be able trigger the adding of the new file into the library. that there is the key, the library file has to be aware of the new music. in order for that to be successful, it should already be in its final location (sorted in your structure) or placed there upon import via itunes.
more to think about...
if it's downloading into your downloads folder, then it's not going into your proper folder on the other computer where the files are stored. this is where the itunes file management might come in handy... there are apps that handle that tasks for you. i'm not familiar with uTorrent or Cabos, but p2p client Acquisition and torrent client xTorrent both have a preference that automatically puts files into the itunes library and cleans up the downloaded files after it does so. i use both of those clients (and recommend that you do so legally) so that the legit help here does not get flagged as advocating illegal downloads.
i guess it comes back again to whether your folder scheme is necessary to anything other than your organizational system. if not, i'd recommend using itunes method, and the take the added value of some other apps out there to help automate your process. i was reluctant to let itunes take control of my files so long ago, but i find now that it's much easier that way. for instance, if i have a single file floating around, not properly assigned to an artist or album, setting that data in itunes will put it where it belongs for me.
btw, doug's scripts is a fantastic resource for itunes applescripts for hundreds, maybe even now thousands, of itunes and related file tasks. check it out: http://dougscripts.com/itunes/ it's amazing to see what other people have already tried, done, and suggest just by looking around his site.
- jeremy -
10.4.7 printer setup utility not working
I have an eMac with a USB connection to a HP officejet 5610xi AiO printer. Until about 2 weeks ago, (when I believe we updated to 10.4.7) all was well. After manually uninstalling the HP software, reinstalling from the downloads and the CD, I still can't add the printer. HP support thinks I may have a problem with printer setup utility. When I have downloaded their software, it gets stuck for over five minutes in the printer plug ins install before it finishes. When I try to run set up, it gets stuck on the fax set up page before it says it's finished. When I try to add the printer the printer browser finds the printer through the USB connection, but it won't let me add the printer.
I ran the repair hard drive. Seemed like it might have repaired things too fast. Only took a few seconds. Tried reinstalling a new 10.4.7 combo update just now and got an error message at about 80% complete. Earlier I ran the quick and extended hardware test and found no problems.
I can't find my backup drive, the computer lists my firewire connection as "unknown device."
Instead of having selection/dialog boxes highlighted in blue, sometimes there is a thick black box instead.
Last night, about five applications including safari and finder stopped responding. I couldn't force a quit either.
This morning applications like quicken, palm, iTunes, and appleworks won't open because of a "shared library" error message.
Should I just give up and take everything to the shop?
Thanks,
Terri
Maybe you are looking for
-
Pthread_mutex_lock
Hello- I'm using the pthread library on a Solaris 8 machine. The problem is when I perform a pthread_mutex_lock on a mutex that has been initialized with the PTHREAD_PRIORITY_INHERIT protocol form a pthread that has been created with scheduling attri
-
HT5463 I changed password but can not use new password on phone. Why?
I changed password but can not use new password on phone. Why?
-
How to make Report to create dynamically from datamodel
Hi All, I am able to make a report data, if the datamodel is create as sample data. I tried to map the datamodel which is doesn't contain any sample data and trying to map to report so that it can generate data dynamically. It always throws "Error: D
-
Skype credit not applied to my phone number account
I few month age I purchased $10.00 credit. I showed up in my Skype account as a credit, the $10.00 plus whatever credit I have to my phone number. When I make calls on my Skype number it will it will debit my account balance until I approach the $1
-
HT201304 Siri is not showing on my ipad2 after upgrading to ios6
I have upgraded to iOS 6 on my iPad 2 but when I go to settings, general there is no siri. Does it work on the ipad2? If so how do I get it on there. I have checked my restrictions and they are disabled.