Xojo Conferences
XDCMay2019MiamiUSA

Re: [MBS] Using LSSharedFileListItemMBS (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Re: WebView and Internet Plug-Ins
Next thread: [MBS] JDBC and MAS


Re: [MBS] loginitems and LSSharedFileListItemMBS   -   Christian Schmitz
  Re: [MBS] Using LSSharedFileListItemMBS   -   Christian Schmitz
    [MBS] Using LSSharedFileListItemMBS   -   Beatrix Willius

Re: [MBS] Using LSSharedFileListItemMBS
Date: 16.04.11 17:55 (Sat, 16 Apr 2011 18:55:41 +0200)
From: Christian Schmitz

Am 16.04.2011 um 18:30 schrieb Beatrix Willius:

> Hi Christian,
>
> I'm trying to add an application to the login items with your code:
> Shouldn't I be able to see this in my login items afterwards? Or did I do something wrong here?

Yes. I see something there. iPhoto appears.

Greetings
Christian

[MBS] Using LSSharedFileListItemMBS
Date: 16.04.11 17:30 (Sat, 16 Apr 2011 18:30:16 +0200)
From: Beatrix Willius
Hi Christian,

I'm trying to add an application to the login items with your code:

Begin forwarded message:

> Yes, you are right. Here a few snippets:
>
> // Add iPhoto to launch items
>
> // pick app
> dim app as FolderItem = SpecialFolder.Applications.Child("iPhoto.app")
>
> // get list object
> dim l as new LSSharedFileListMBS(LSSharedFileListMBS.kSessionLoginItems)
>
> // insert file
> dim item as LSSharedFileListItemMBS = l.InsertFile(l.kLSSharedFileListItemBeforeFirst, "Launch iPhoto", nil, app)
>
> // check error
> if l.Lasterror = 0 then
> MsgBox "OK"
> else
> MsgBox "Failed: "+str(l.Lasterror)
> end if

Shouldn't I be able to see this in my login items afterwards? Or did I do something wrong here?

Using RB 2010r5 with MBS 11.1 on Mac OS 10.6.4.

Mit freundlichen Grüßen/Regards

Trixi Willius

http://www.mothsoftware.com
Mail Archiver X: archive, clean and search email
http://www.beatrixwillius.de
Fractals, 3d landscapes etc.

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info