Closed Bug 605068 Opened 15 years ago Closed 15 years ago

Adding and deleting bookmarks via AppleScript need to trigger Spotlight metadata changes

Categories

(Camino Graveyard :: Bookmarks, defect)

All
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: alqahira, Assigned: stuart.morgan+bugzilla)

References

Details

(Keywords: regression, Whiteboard: [camino-2.0.6])

Attachments

(1 file)

With Stuart's patch in bug 569258, adding and deleting bookmarks via AppleScript don't trigger the creation of new Spotlight metadata nor the deletion of that metadata. Amazingly, this did actually work before the patch, so we should fix the regression. Simple test script: tell application "Camino" make new bookmark with properties ¬ {name:"Example", URL:"http://www.example.com/"} at end of ¬ bookmarks of bookmark bar collection --comment out lines above and uncomment line below to test deletion --delete bookmark "Example" of bookmark bar collection end tell
Assignee: nobody → stuart.morgan+bugzilla
Flags: camino2.1?
Flags: camino2.0.6?
(In reply to bug 569258 comment #9) > Oh, right. Maybe a follow-up bug for that? I'm willing to regress AS to fix the > common cases (I'll fix at least removal quickly though; adding I'll need to > play with to see if I can tell the difference between moving and creating). The UUID shouldn't change in the move case, right? (If it does, I'd consider that to be a bug; if we ever get syncing working, that would be a pain for those users.) Or is the issue/hard part of move that we won't necessarily know to pay attention to the UUID (or anything else) before the move happens?
Actually it looks like move would have to be a delete+insert, so this should be easy both ways.
Flags: camino2.1?
Flags: camino2.1+
Flags: camino2.0.6?
Flags: camino2.0.6+
Attached patch fixSplinter Review
Attachment #488686 - Flags: superreview?(mikepinkerton)
(In reply to comment #1) > The UUID shouldn't change in the move case, right? (If it does, I'd consider > that to be a bug; if we ever get syncing working, that would be a pain for > those users.) I tested, and 'move' does indeed preserve the UUID. Yay AppleScript for doing the right thing :)
Attachment #488686 - Flags: superreview?(mikepinkerton) → superreview+
Landed on the CAMINO_2_0_BRANCH in advance of 2.0.6; leaving open for Cm2.1 landing.
Whiteboard: [camino-2.0.6]
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: