@implementation MyCustomWindow
- (id)initWithContentRect:(NSRect)contentRect
styleMask:(NSUInteger)windowStyle
backing:(NSBackingStoreType)bufferingType
defer:(BOOL)deferCreation
{
self = [super
initWithContentRect:contentRect
styleMask:NSBorderlessWindowMask
backing:bufferingType
defer:deferCreation];
if (self)
{
[self setOpaque:NO];
[self setBackgroundColor:[NSColor clearColor]];
}
return self;
}
@end
tell application "iTunes"
copy (get location of current track) to mLocation
ignoring application responses
delete current track
end ignoring
end tell
tell application "Finder"
move mLocation to trash
end tell