Creating a Widget: Info.plist help

Hello, I'm currently looking into designing widgets for use on the dashboard, but I'm having some problems. I already have a good understanding of HTML, CSS, and JavaScript, so the problem isn't in the creation of a widget itself, but rather the assembly of it.
I have a folder that I am using for a widget, entitled "Sample."
I have all of the necessary files within it:
-Default.png
-Icon.png
-Sample.html
The HTML file:
<html>
<head>
<title>Basic</title>
</head>
<body>
<h 1>Basic</h 1>
</body>
</html>
-Info.plist
The Info file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDisplayName</key>
<string>Sample</string>
<key>CFBundleIdentifier</key>
<string>com.apple.widget.sample</string>
<key>CFBundleName</key>
<string>Sample</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>CloseBoxInsetX</key>
<integer>16</integer>
<key>CloseBoxInsetY</key>
<integer>14</integer>
<key>MainHTML</key>
<string>Sample.html</string>
</dict>
</plist>
However, when renaming the folder with a .wdgt extension, I receive an error that says the widget is not valid. I think I am saving the info.plist file incorrectly: according to the Dashboard programming guide, it can be made in any text editor, so when saved from TextEdit, the file name becomes "Info.plist.txt". Is this incorrect, or does it matter? I jhaven't found a guide that goes in depth about the saving of the file, so I want to make sure I know what I'm doing wrong. Have I set up the Info.plist file incorrectly? Or is it something else?
Thanks for your time.
iMac G5   Mac OS X (10.4.3)  

Everything looks okay, except for the name on the Info.plist file. Also, make sure when you create the Info.plist file in TextEdit that you're editing it in Plain Text mode and not Rich Text. When you save it, if it wants to append ".txt" onto the end, uncheck the checkbox that says "If no extension is provided, use ".txt"", then give it an extension of ".plist" and click Save. In any case, the name of the file must be "Info.plist" (w/o the quotes, capital i) exactly.
Anatomy of a Modern Bundle talks more about how the Info.plist file is used in other aspects of OS X.
Hope this helps...
Dual 2.7 GHz PowerPC G5 w/ 2.5 GB RAM   Mac OS X (10.4.3)  

Similar Messages

  • Help! No info.plist, manifest.plist, or status.plist on Iphone backup...data can not be recovered

    I'm at a lost here, I created a backup of my iphone before I updated my firmware.  When I went to go restore from backup, I noticed it did not backup completely.  I checked the 'C:\Users\Name\AppData\Roaming\Apple Computer\MobileSync\Backup' and noticed that the folder that carries my backup does not have the info.plist, manifest.plist, or status.plist files??  All the data seems to be intact, just no way to extract it.  I already tried to use iPhone Backup Extractor, did not work.  Somebody please help me out, I don't want to be out of luck.  I'm missing all my past important SMS history, curcial Notes and emails. 
    Thanks ahead of time,

    gdgmacguy wrote:
    If your backup is corrupted you cannot retrieve data from it.
    I've been working on a tool that repairs most iPhone (iPad, iPod Touch) backups that iTunes reports as corrupted -- it seems to be working fairly well for people we've had using it lately! If someone stumbles on this post and wants to try it out, the program is Decipher Backup Repair, and you can try it here:
    http://deciphertools.com/download-decipher-backup-repair.html
    As other people in the thread have mentioned, you can also try some third-party programs to read the backup and pull-out the important data so you at least have it in some capacity. We have one on the website I've linked above, in addition to the repair software.
    I hope this helps someone who finds this thread! Dealing with iTunes backups can be really painful, and I know it's horribly depressing to wait through a restore to get the corrupted message after SEVERAL minutes.
    (Note: As I mentioned, I work on the backup fixing software I linked to, so I stand to benefit, financially or otherwise, from the links I've provided.)

  • Creating Dashboard Widgets

    Ok, I'm trying to create my first Dashboard widget; and I need some help. Heres my Info.plist:
    <plist>
    <dict>
    <key>CFBundleIdentifier</key>
    <string>com.JZ.widget.Mailer</string>
    <key>MainHTML</key>
    <string>index.html</string>
    </dict>
    </plist>
    Heres my index.html:
    <html>
    <head>
    <script>
    function launchMail() {
    var commandLine = "/usr/bin/osascript -e 'tell application \"Mail\"\nactivate\nend tell\n'";
    widget.system(commandLine, null);
    </script>
    </head>
    <body>
    img src=Mail.png onmousedown="launchMail();" (NOTE: Tags removed.)
    </body>
    </html>
    It returns the "Not a valid widget" error... What's wrong?

    You are missing a number of required keys in your plist. See the section titled The Info.plist File on Apple's "Developing Dashboard Widgets" page.

  • Dashcode "Missing Info.plist" agony.

    hello all,
    i'm having a real pain in the patoot trying to use dashcode under 10.5.6 leopard.
    i launch dashcode to create a new countdown widget in Dashcode. i set all the widget attributes and mark that and the customize countdown options as done. i save. i then try and just run it, as is. each and every time i get the same error: "Cannot open widget: Missing Info.plist file." i check the "Files" view and yes, an Info.plist file is in there. also, it's properly named "Info.plist," capital "I," not lowercase "i" on "Info." (yes, i've seen those errors mentioned in these forums.
    in addition, if i save everything, shut down dashcode, and re-open it, i then get a Canvas view screen with nothing but the blank, grey checkered canvas where the widget formerly was. and i haven't altered any files or changed a line of code.
    i'm on a black macbook with an intel core2duo 2.16 Ghz process, 2 GB ram and mac os x 10.5.6 leopard with all the latest updates to the system applied, security updates and all else.
    to make sure it wasn't my development install, i downloaded and installed the latest Xcode 3.1.2 package and iPhone SDK 2.2.1 package and installed them both. i still have the same problem after installing those, restarting, and doing the exact same steps above in Dashcode v. 2.0.1 (159). before this, this never happened to me in dashcode before.
    any help as to what is happening here would be most appreciated. thank you.
    — faddah steve yuetsu wolf
    portland, oregon

    I am also having problems with dashcode.
    If I create a simple generic screen with text, an indicator and a text entry and then save, I see two errors. Sometimes it pretends to save, but afterwards it reverts to the initial hello prompt. Other times it complains that it cannot save (my memory is sketchy as to the exact error because I've been seeing it a while ago).
    I initially installed the XCode that came with my macintosh last fall. I don't know the version, but could look it up. I've since then installed the XCode on the site and the XCode that comes with the iphone development kit. I've installed and uninstalled (using both rm and the unistallation command given in the installation readme) in several combinations of the above xcode versions. So far, I've had no luck.
    Sorry, I have no answers, but our problems seemed similar enough for me to chime in.

  • ERROR: "info.plist does not validate against DTD"

    Hi! I got this error if anyone has it solved Please HELP.
    I am trying to package a WRT widget using Nokia WRT extension for Adobe Dreamweaver. This is the place for info on the extension: http://www.forum.nokia.com/Tools_Docs_and_Code/Tools/Runtimes/Web_Runtime/
    I figure developer from here who use DW to develop mobile content might know the error.
    When come to the step of 'Package Nokia WRT Widget' I got this error: info.plist does not validate against DTD
    and a page of error info shown like this:
    DTD validated at: Wed Jun 17 2009 19:03:00 GMT+0800 (Malay Peninsula Standard Time)
    DTD used for validation: http://www.nokia.com/DTDs/plist-1.0.dtd
    Line
    Column
    Message
    Explanation
    Source
    2
    95
    DTD did not contain element declaration for document type name
    3
    16
    Attribute "version" exists, but can not be used for this element.
    3
    21
    element "plist" undefined. Did you mean "applet" or "strike"?
    4
    7
    element "dict" undefined. Did you mean "strike" or "input"?
    5
    7
    element "key" undefined. Did you mean "strike" or "blockquote"?
    6
    10
    element "string" undefined. Did you mean "strong" or "strike"?
    7
    7
    element "key" undefined. Did you mean "strike" or "blockquote"?
    8
    10
    element "string" undefined. Did you mean "strong" or "strike"?
    9
    7
    element "key" undefined. Did you mean "strike" or "blockquote"?
    10
    10
    element "string" undefined. Did you mean "strong" or "strike"?
    11
    7
    element "key" undefined. Did you mean "strike" or "blockquote"?
    12
    10
    element "string" undefined. Did you mean "strong" or "strike"?
    13
    7
    element "key" undefined. Did you mean "strike" or "blockquote"?
    14
    9
    element "true" undefined. Did you mean "textarea" or "tr"?
    Can anyone knows what this means and how i can solve it?
    Please help. Thankyou.
    note: I am new here and knows that keep asking quesion without giving back is not good but I have a deadline here and wanted to finish the job. I will read some other post and try to help in return when I am able to do so.

    Hi pziecina,
    Thanks for your reply,
    I suspect my problem is the installation or setup of my system or software. as the result i tested is not by doing any scripting at all. All I did is following one of their example exactly (http://www.forum.nokia.com/Tools_Docs_and_Code/Tools/Runtimes/Web_Runtime/Dreamweaver_Exte nsion/QuickStart.xhtml) and package strightaway without modifying the code. because I want to make sure i got the extension install correctly. even so by packaging one of their ready make example already yield this error.

  • CFBundleDisplayName not in info.plist

    I've developed an app for iOS in Flash specifically for iPad 3's. My client uses SOTI MobiControl as it's mobile device management solution. If I publish out of Flash using AIR SDK 3.4 the app is created and looks  great. When they try to add the app to SOTI for in-house distribution it errors with the error claiming that "CFBundleDisplayName" has been left blank.
    After having looked into it I've been able to find out that when publishing with versions of the AIR SDK older than 3.0, the info.plist file within the app package includes a CFBundleDisplayName. In versions newer than 3.0 there is no CFBundleDisplayName in the info.plist.
    Is there a way to have a CFBundleDisplayName included while publishing from Flash? Or alternatively is there a way to edit the package contents of the .ipa?
    Thanks in advance for any help.

    <CFBundleDisplayName> tag is added in Info.plist, if app developer wants localized app name. In order to localize the app name, you would need to add <text> tag under <name> tag in app.xml.
    For example:   
    <name>
    <text xml:lang="en">English app</text>
    <text xml:lang="fr">Fran€ais app</text>
    <text xml:lang="de"> Methodenprüfung</text>
    <text xml:lang="it">ItalianDebugger</text>
    <text xml:lang="pt-BR">PortuguêsDebugger</text>
    <text xml:lang="ru">РусскийDebugger</text>
    <text xml:lang="es">Espa?olIME</text>
    <text xml:lang="ja">日本語Debugger方法テスト</text>
    <text xml:lang="ko">한국어AppDebugger</text>
    <text xml:lang="zh-CN">中文Debugger测试</text>
    <text xml:lang="zh-TW">中文Debugger方法測試</text>
    <text xml:lang="cs">ČeštinaDebugger</text>
    <text xml:lang="tr">TürkçeInpuyDebugger</text>
    <text xml:lang="sv">SvenskaDebuggerApp</text>
    <text xml:lang="nl">MethodeDebugger het testen</text>
    <text xml:lang="pl">PolskiDebugger</text>
    </name>
    -Neha

  • Info.plist issues with Core Data

    I created a new project, selecting to use Core Data. However, the info.plist does not include the standard iPhone project options like status bar style and icon gloss etc. I tried copying and pasting the status bar style key and value from another project's plist, but this has no effect.
    Any help would be appreciated please.

    Verduomo wrote:
    I created a new project, selecting to use Core Data. However, the info.plist does not include the standard iPhone project options like status bar style and icon gloss etc.
    Shine is added by Apple now. I get shine without a 'prerendered' key.
    What SDK are you working with?
    Did you add a 'prerendered' key?
    <key>UIPrerenderedIcon</key>
    <true/>

  • How can I convert the download.m4a and Info.plist into the right audio file

    The topic is actually the problem that I have.
    I have bought music and it was downloaded successful (all of it) but iTunes had a strange freeze while converting the files into the right audio file. Some files were converted but after the freeze no more.
    I'm now left with these .tmp folders in the downloads folder which have the download.m4a and Info.plist files.
    My iTunes is able to play these download.m4a files, but they show no information and covers and this is really annoying. I could write and change it all by myself, but than I would still miss some information (and covers).
    Is there any way for me to convert or combine these files?
    Note: I'm not able to restart any downloads, because they were successful.

    Hello ed2345,
    Thanks for the help, but this is not the problem.
    It's hard to describe the problem, but I'll try it again, this time with pictures.
    I was left with the following folders in the iTunes Downloads folder.
    http://www.picfront.org/d/7yb3
    These TMP Folders have a download.m4a and a Info.plist file.
    After moving the audio files in iTunes a bit I get this.
    http://www.picfront.org/d/7yb2
    As you can see no other Information for the download.m4a than the length.
    That's how the .m4p file looks like
    http://www.picfront.org/d/7yb1
    And this is how the same .m4a file currently looks
    http://www.picfront.org/d/7yb0
    Like I said, I could edit all these download.m4a files by myself but that would leave some information out.
    Note: Sorry, I hope the links do not spam you with annoying ads. I don't get any but I was told that there can be some annoying one.

  • Is there a way to link or create a widget that links back to the iTunes U app on your iPad from your iBook?

    Is there a way to link or create a widget that links back to the iTunes U app on your iPad from your iBook?
    I have already found the Apple Widget Builder (http://widgets.itunes.apple.com/builder/) and that works fine if you want to link to the "App Store", but I want to know if there is a way to "open an app" that is already installed on the iPad instead of double tapping the home button to switch between apps. (I know using the home button is very simple, but I am trying to find an even easier way to just "tap a widget" or "link" that will open iTunes U right up) I am only asking if this is possible for people who may have a hard time running an iPad at the beginning.
    I appreciate any help, thanks!

    I appreciate your help, but I had already looked at LinkMaker and I thought that was my answer, but as far as I could tell that still only links to an app in the app store. Yes it will link to iTunes U in the app store and you can then hit Open, but that is too drawn out of a process. We would like to know a way to just open the app directly.
    Thank you!

  • How do I renew the integrity of a possibly corrupted info.plist?

    When I try to install Messenger 6.0.3, I get the following error message:
    "The Finder cannot complete the operation because some data in
    Info.plist could not be read or written. (Error code -36)."
    How do I renew the integrity of the info.plist file (ideally without screwing everything else up)? Or is something else at work here?

    welbike wrote:
    Is there a solution to this problem?
    I don't know. It might help if you told me what the message was, and what was the "failing" message you mentioned earlier?
    How is it you are now able to install Messenger? Did you repair the disk? Did you download a new copy?
    One thing you can do is to open the Console application, from your Utilities folder, and have console.log in one window and system.log in another. Use the "broom" to clear both windows, then try to start a chat session. When it quits, there will be a message in one or both of the console windows.
    Copy and paste what you get from these windows (and say which is which). I need to see the exact message to take this further.

  • Iphoto won't launch after 10.6.8 update, info.plist lost

    After I updated, iPhoto would seem to start--it was in the menu bar, but most commands were greyed out and no library was visible or available.  I remembered it was a good idea to trash preferences, so I trashed the Info.plist file.  I also moved com.apple.iphoto.plist or the like.  Then iPhoto's icon turned into a generic app icon and I can't even get the menu bar to become iPhoto.  I found this:
    iPhoto[1303]: No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting
    com.apple.launchd.peruser.501[97] ([0x0-0xcb0cb].com.apple.iPhoto[1303]): Exited with exit code: 1
    I may have lost the Info.plist forever in my (ironic) efforts to get iPhoto to work again!
    Help?

    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    2c: on 10.7 they're at
    /private/var/db/receipts
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store or have a Recent Mac you can find it in your Purchases List.

  • Uploading AIR for IOS thru Application Loader I get the following error - The package does not contain an Info.plist.

    I'm publishing an .fla in AIR for IOS.
    I'm in CC 2014 so first I need to know which AIR should I publish in?
    newest is AIR 14.0.0.178 for IOS
    IOS deployment type is App Store
    publishes with no error.
    I see the following files included .swf and app.xml
    I convert the .ipa to a zip file
    Upload that thru the Application Loader I get the following error
    The package does not contain an Info.plist.
    Where is the infoplist for this and do I convert the .ipa and the info to a zip file?
    I converted the .ipa to a .zip and the intoplist file is NOT THERE  how do I generate this?
    Any help here?

    Ok this is becoming very very frustrating as I have been at this for hours now. So the only way to explain this is to write what I did step by step as I have to be doing something wrong, just to recap:
    I was publishing from Flash CC 2014 using AIR 14.0 and getting Digital Certificate is not valid message.
    Was instructed to download new AIR 17 , I did this installed into Flash and used to publish.
    I used my previous p12, app ID and distribution certificates all generated properly.
    The file worked ONCE but I got an app ID error ( I understood I used the wrong app ID)
    I changed it to the right app ID and the very next time and after 10 attempts I got the same error  Digital Certificate is not valid
    SO I then downloaded AIR 16.0
    RE DID ALL MY CERTIFICATES AND P12'S
    went to publish and I STILL GET THE SAME MESSAGE   Digital Certificate is not valid

  • Macbook Pro Hard drive partition and Bootcamp Info.plist

    Okays, so i was planning on installing windows through USB bootcamp as my CD is broken. I tried editing the Info.Plist and i managed to stuff it up and lost original now it doesnt work, how do i redownload my original one.
    THEN i tried to partition the hard drive with disk utility, i accidentally didnt resize each partition and force quit the app and now my hard drive shows 249.56 GB FULL instead of 129.45 full, what do i do to fix my hard drive. in the "about this mac" it shows half my hard drive used as "Other". Please help
    Its a Macbook pro 2010 13inch
    running 10.9 Maverick

    Hi Michele,
    Sounds like a corrupted partition map. Can you run the Bootcamp Setup Assistant again to restore the drive to a single volume? Otherwise, I'd backup the OS X side and then re-partition the drive and start from scratch, then restore your backup so at least you'll be back up and operational on the OS X relatively quickly.

  • Web Service to Create a Document Info Record with attachments (e.g. PDF)

    Hello guys,
    we are looking forward to create a Web Service that should be able to create a Document Info Record on SAP ERP Application Server. As we don't have installed the SAP Standard Web Services on our SAP ERP ECC 6.0 system we will manually create a Web Service with the help of the standard BAPI_DOCUMENT_CREATE2.
    The current problem is that the Web Service based on the Standard BAPI can not upload Files (PDF or Word files) from the Users Client PC to the Application Server.
    Is there a possibility to Create a Web Service that can handle files and create DIRs on application server?
    Thanks a lot!!
    Regards,
    Christian

    Hello Natallia,
    Well, in this case you don't really need the CV01N transaction. This represents the user interface (UI), and you only need an interface (that is, an API), which in SAP is represented by a BAPI
    I'm not familiar with CRM, but I assume that at some point when saving a Service Contract, you have a BAdI, where you can check the status and insert some custom code.
    So, all you have to do is call BAPI_DOCUMENT_CREATE or BAPI_DOCUMENT_CREATE2 (if available on your installed version), with the required attributes (this can be master data, classification, custom data...). After this function is called successfully, you should receive the document key (DOKAR, DOKNR, DOKVR, and DOKTL). Which you can also save in the Attachments tab.
    Hope this helps,
    Tudor

  • My backup file missing (info.plist)

    I did upgrade from 4.2.1 to 4.3.3
    but my 4.2.1 backup file missing.
    missing is only 5 files ( Info.plist Manifest.mbdb Manifest.mbdx Manifest.plist Status.plist )
    I was recorver HDD so got 4 files ( Manifest.mbdb Manifest.mbdx Manifest.plist Status.plist )
    but Info.plist file is dont found.
    please help me.
    how can I restore from my backup file?
    (orry, my english not good. )

    When you look for the backup it could be possible that its saved as loaderbackup instead of just backup.  What version of the desktop software do you have?

Maybe you are looking for

  • HP LaserJet M2727 nf - Driver for Window-7 Page Not Found

    I go to HP.COM I click on Support, Download drivers I enter the model laserjet M2727nf and click GO I get this: 1 match found. Please select below. HP LaserJet M2727 Multifunction Printer series I click the printer name and get this: HP LaserJet M272

  • VS2013 Installation failed - The Temp folder is on a drive that is full or is inaccessible

    When I trying to install Visual Studio 2013 Premium either from .ISO or web installer, installation fails on installing Microsoft Visual C++ 2013 x86 Minimum Runtime - 12.0.21005 with error: The Temp folder is on a drive that is full or is inaccessib

  • Copying Band files OUT of iTunes

    Hi, I have written a few songs with GB for iPad, great tool, absolutely loving it! But for one niggle; I can't seem to "drag-and-drop" export the ".band" files I send to iTunes into my Windows 7 desktop? I understand from my research that the ".band"

  • Can I get  Vendor Account Group & Cost center from PAYEXT Message Type?

    Hi Everybody, I am getting all the IDOC's of message type "PAYEXT" fro EDIDC & EDID4 tables. But will these IDOC's will contain Vendor Account Group & Cost Center ? If so could you please let me know the Segment & corresponding fields. Thanks & Regar

  • Can't open Quicktime .mov file (Error -2048)

    I can't open and run an 11mb QuickTime .mov file that was created, I'm pretty sure, on a Mac. I'm using a PC running QuickTime 7.2. Colleagues using PCs with QuickTime 7.0 and 7.1 can't run it either. The guy who created the file apparently has no pr