Saving file bug?

sometimes I am noticing that when saving a file, if I define
the file inside a function it gets what seems to be a bug.
I have this code:
var newFile:File =
File.desktopDirectory.resolvePath("tab_icons/myimage.png");
which results in saving this on my desktop:
C:\Documents and Settings\jisaacks\Desktop\function
Function() {}\tab_icons\myimage.png\function Function() {}
its seems it is adding
\function Function() {} before and after the string I pass.
if I define the file in the begening of the code outside the
function there is no problem.
the app I am noticing this in is pretty complex, when I tried
to simulate the same thing by creating a new blank file and just
making a function to define the file and save it, it did not
produce the bug so I am not sure exactly what in my code is making
this happen. I can post my entire code if requested.

ok I have pinpointed the problem to this function:
Array.prototype.in_array = function( what ) {
for( var a = 0; a < this.length; a++ ) {
if( this[a] == what ) {
return true;
else if( this[a] is Array ) {
return this[a].in_array( what );
return false;
this function has nothing to do with saving files, but
whenever I remove this function and any calls to it, I no longer
have a problem, I wonder if there is something in here that messes
with the built in code?

Similar Messages

  • I am unable to retrieve spreadsheets.  Numbers displays the "Welcome To Numbers" page but does not allow saved spreadsheets to be opened.  It offers the "Open Recent" choice and displays saved file names but does not allow these files to be accessed.

    I recently upgraded to Numbers 3.5.2.  I have an older Macbook Pro (2009) and I run Yosemite 10.10.2.  I am unable to open any saved files that were created with earlier versions of Numbers.  When I open the Numbers app, I am offered the Welcome To Numbers page.  When I choose the 'Open Recent' option, I am offered the greyed names of files that I had recently used, however, I am unable to open any of these files (no error message is displayed).  Welcome To Numbers stays on the screen.  I tried opening the app by clicking on the file name but it produced the same results.  I am having a similar problem with Pages.   I suspect a compatibility problem between the new OSX and the new iWork offerings.   Has anyone else encountered this problem?  Does it require a setting change or is it a bug?

    I managed to download and install the iWork '09 apps.  However, when I attempt to open the app, I receive this error message:
    Numbers cannot be opened because of a problem.
    Check with the developer to make sure Numbers works with this version of OS X.  You may need to reinstall the application.  Be sure to install any available updates for the application and OS X.
    Problem Details and Configuration:
    Process:          Numbers [39838]
    Path:               /Applications/iWork '09/Numbers.app/Contents/Mac OS/Numbers
    Identifier:          com.apple.iWork.Numbers
    Version          ???
    Build Info:     Numbers-2990000~12
    Code Type:     X86 (Native)
    Parent Process:  ??? [1]
    Responsible:     Numbers [39838]
    User ID:          501
    Any thoughts as to what has to happen next?  I am running the latest OS X available (Yosemite 10.10.2)

  • Saving file format - suddenly having problems

    Hi all,
    I have been using PSE9 on my Intel iMac (OS 10.5.8) for a couple of weeks, and yesterday I started experiencing the following problems:
    (In Full Edit Mode)
    1) When trying the "Save As" command after working on an image, I was getting a message saying that my user account was not authorized to make changes, yet there is only one account on this computer.
    2) Shift-Command-S brings up the Save As window, but no matter what format I choose, it stays .jpg! I tried on a couple of different pictures, same results.
    Initially, I was able to save in PSD format when I moved the new file to a different location, i.e. instead of saving the new file in the original folder, I copied to desktop, but that's not working now.
    I opened PSE Preferences for Saving Files, and checked off append files with extensions "always" and "OK", but when I go back to the same Preference Panel, it has reverted to Never, which is the default position. I am wondering if this is the source of my problems.
    I have tried:
    placing the Preference files for PSD and Organizer in the trash and re-launching PSE9.
    Trashing Preference files, then restarting the computer and re-launching PSE9.
    Uninstalled PSE 6.
    Uninstalled PSE 9 and performed a reinstall off the CD. I was able to Save As a PSD file for a day, now back to the same situation, also still getting an error message if I try to save a JPG file in the folder of origin for that image.
    What should I do next?
    Martin

    I opened PSE Preferences for Saving Files, and checked off append files with extensions "always" and "OK", but when I go back to the same Preference Panel, it has reverted to Never, which is the default position. I am wondering if this is the source of my problems.
    Yes. It is a known bug. Your options are to trash the prefs again and never, never, never open the Saving Files preferences pane again (just going there causes this), or to add the file extension in manually when saving. (The default position is Always, but merely opening the saving files preference sets it to Never.)

  • Conversions aside, the fundamental flaw: Saving Files

    In all Macdom it is true that if you want to save your work there are two choices.
    Save: OVER-WRITES your file and commits changes.
    Save-As: PRESERVES the previous version and saves a new one.
    This concept is universal, fundamental and well understood by computer users.
    Aperture violates this protocol.
    Aperture REQUIRES that I over-write the file I'm working on as a condition of managing it within Aperture. I can only SAVE the file and have it appear in the app. A Save-As, saves the version outside the application and I have to jump through hoops to get it back in.
    In Aperture, if I want to perform the equivalent of a Save-As I have to do it before I open the file. I have to tell Aperture to create a new version of the file, open THAT version and continue. This is because I cannot, in an external editor, decide that I have just made changes that I may want to reverse and that it's a good idea to save what I've done as a version. Well, I can do that, but doing it is complicated.
    I have to Save-As,
    Leave the Application,
    Navigate to the saved file,
    Drag it into the appropriate project in Aperture,
    Delete the version in the finder
    Moreover as we know any layers created in any but the first version of a file are not accessible from within Aperture. If I want to open the second or third or subsequent version of a file and access it's layers I have to
    Tell Aperture to make a copy of that version of that file to the hard drive
    Navigate to that file
    Drag it into the external editor of my choice
    When I save the file, since it wasn't opened FROM Aperture I can't save it back into Aperture so I must save it to the hard drive
    Navigate to the file
    Drag it into the appropriate project in Aperture
    Delete the version on the hard drive.
    From one dialog box we have gone to six new steps.
    To my mind this is a silly, obstructive, dangerous workflow. I trust Apple will fix it. They will have to fix this as well as a number of other bugs, bear-traps, gotchas and conversion quality issues before Aperture will be worth it's price tag.

    I understand what you are saying, but think there are a few holes in the mental model you have built.
    To start with, since you start with an untouchable RAW file, any operation after the start is essentially an automatic "Save As". From there..
    <....>
    In Photoshop, make changes. Save file back to
    Aperture.
    You now have one Master and one working file.
    You now want to make some changes to the working
    file. Click on it and open it in Photoshop. Aperture
    does NOT make a version of this file. Any changes you
    save will over-write this file. Your previous Version
    One is toast.
    Aha! But think about how useful a feature this is. Let us say you had done a lot of work with layers in Photoshop. The advanatage is you get back that exact same file with all the layers intact. You can name the version and so distiguish this as a special, Photoshop version that you need to make new versions from if you want copies.
    Indeed I think this to be trhe most sesnsible default as the flow should be - RAW goes to Aperture, do do what it can. If the image is beyond just Aperture to retouch, you send it to the e3xternal editor but at that point you've realy reached an end in Aperture and you are working the image over soley with the external editor. There is no other point it makes sense there to make a version for you, it would actually be rath in convieninet if you are making a lot of short hops between Aperture and Photoshop to say tweak an image you are using in a compariosn or on a light table.
    However you are not quite seeing the whole picture, as another thing Aperture also does in this case is to make a new copy automatically ONLY IF you use Aperture tools for adjustment. From that sense it is still like an automatic "Save As", only if you do not return to the tool that spawned the master in the first place. As I said though I don't think that to be a very good idea (apart from making side versions from a PSD master like B&W or other crops).
    <...>
    Worse. You are working on Version 1 and save it at
    some critical juncture. You continue working on it
    and save it again. If at any point you do a Save As
    to create a version from within photoshop so that you
    don't overwrite version 1 you can't save that to
    Aperture.
    Sure you can, you just have to manually rest the saved location back to the "new master" held in the Aperture library.
    Alternatley you can copy the adjustment layers from thee "Saved As" image back into an Aperture version after simply telling Aperture to "Edit in external editor" again.
    Yes, your Master is safe, as it is in every other
    application that converts RAW files, but the work you
    do on those images is in grave danger.
    Aperture makes some pretty good guesses but it cannot read minds or prevent you from doing silly things in external editors. The real question is why, if you are letting Aperture manage the PSD file are you doing a "Save As" in Photoshop at all? That part of your scenario makes no sense to me, or at least not as much sense as the rest did. Let go and use Photoshop as a close extension of Aperture instead of trying to save files elsewhere when there is no need.

  • Soundbooth crashes when saving file as wmv or wma

    Hi,
    I have Soundbooth wmv and just recently I have encountered the following bug.  After working on a sound file I go to 'save as' to save the file as a windows media file (wma).
    Nothing happens soundbooth just seems to freeze although in the task manager it is identified as running.  I also get the impression that a window is missing (Normally a window pops up when you select this I think).
    Has anyone else encountered this bug, and know of anyway to resolve it before we do the whole un-install and re-install.
    Saving files as MP3 etc does not cause an issue.
    Thanks
    Tim

    Save to PDF or a pixel format? Flatten the gradient, so it gets embedded as pixel data in the EPS with a vector clipping mask? Depending on what kind of gradient you use that would look better, anyways. If the EPS cannot express your gradient as a native gradient, it will be converted a set of stacked fill objects and that may not look good at all due to the quantization and banding. It's an inherent limitation and using an old AI certainly doesn't make things easier. Also try to expand the text and separate each letter. That would change the structure of the resulting EPS file and it may be able to express your gradient fills proiperly on a per obejct basis then.
    Mylenium

  • Saving files to a specific folder

    I used to be a PC, now I am a Mac, learning fast, but I have a problem in saving files from the web. I am using OS 10.4.7
    I am using Firefox and Thunderbird.
    When I try to save email or a picture from a web site I am presented with a Menu; Save as, Where and Format. The 'Where' is the problem.
    When I click 'WHERE', I am presented with a list;
    Network
    Mac HD 80
    Mac HD 60
    Desktop
    MCMP (HOME, where all my different folders are)
    Applications
    Movies
    Music
    Picures
    When I click on MCMP, my home with all my sub folders, there is no way to save the file any place but just in MCMP. I have no options which folder in MCMP or sub folder of a main topic folder. Saving to MCMP just puts the file in with all my different folders.
    How do I direct exactly which folder the item is to be saved into.
    Thank You
    WM300

    wm
    Spring loaded folders: Drag a file to a flder, hold it over it and the folder will open. You can use this to drop files into sub folders and so on. The timing on how long you have to hold is controlled in the Finder preferences -> General Pane.
    Another possibilty for your original question is to use Default Folder X, a shareware, that makes navigating open and close dialogues very easy.
    http://www.stclairsw.com/
    Regards
    TD

  • Authenication needed when moving or saving files to a folder

    I've been online searching but can't find a resolution to disabling having to authenticate when moving or saving files to any folder.
    I read something about using Terminal and tried the suggestion which was typing in
    sudo chawn -R yourshortname . Then putting in my password when prompted. It either will not type my password or not accept it.
    Can anyone help? Thanks

    You can't disable or correct it with that command. See http://discussions.apple.com/thread.jspa?threadID=1216618 for more information.

  • Saving file to network location

    Hello all of you,
    I encounter an issue with InDesign CS5 when it comes to opening and saving files to a network location. I added my company's ftp server to Windows 7 and it appears correctly in the My computer overview (there's an additional line besides the hard discs, DVD player, et cetera). The connection to the server functions fine, no issues here. No problem exists when opening files from this server from within InDesign; I can do whatever I want. Only when I try to save a file the network location isn't displayed anymore within the My computer overview in the InDesign "Save as" dialog box. The network location however appears in the pull-down menu at the top of the dialog box (and nested as part of My computer ...), but when I pick it there, it won't show the context of the server. Additionally logging onto the server (it's IP-based and anonymous logon) doesn't change a thing. Trying to save in the empty server space InDesign returns a "Can't save here" error message.
    Does anyone know how to solve this issue? Building the document locally and then copying back to the server isn't a solution, because all external content that is linked in the document resides on the server.
    Best regards,
    Luc Peulen

    Does anyone know how to solve this issue? Building the document locally and then copying back to the server isn't a solution, because all external content that is linked in the document resides on the server.
    Scott is basically right. Lots of ID users work over network connections without issue, but if something is going wrong, it's the first place to look. I wouldn't have thought it possible to work in InDesign over a FTP connection!
    If you can get Windows to access that server as if it were just another drive (using "Map network drive" in Explorer) then it should work normally. However, a generic Adobe phone tech wouldn't help you figure out why it wouldn't work - there are simply too many variables in a network environment for a generic first-level tech to figure out.
    In the short term, the only solution I can suggest is:
    Retrieve all of that external content that is linked in the document, and the InDesign document, at the same time, & store it on your local hard drive.
    Do your work.
    Save & package.
    Upload the entire package back to the server.
    Long-term, you'd need to talk to your own IT staff to troubleshoot the connection between your workstation and the FTP server. If you can get information about your network from them to post here, I bet that someone will make suggestions to pass on to your IT staff that will actually work.

  • How to get a gif file to loop in PE11 with MAC 10.6.8? 480x320x72 pix/in. saved layers for web, check animate,preview plays fine but saved file doesnt

    can't figure out why the gif file won't loop. Set up 5 photo frames 480x320pixels x 72pix/in in PE11, creating a layer for each. Each layer visible. Saved for web. Checked animate. The preview plays fine. But when I save the file and then click on the saved file to play, it re-opens the layers instead of playing the loop. The only SAVE option that shows up is "IMAGES ONLY"
    Using photoshop elements 11 on MAC 10.6.8. Either I'm setting this up wrong or is there a hidden setting I need to change?

    Thanks for the thought, Barbara B. Not sure if this counts, but emailed the file to myself [different email account, same computer] but it would not play as an email attachment. Any suggestions for a web upload where I can test your suggestion? Seems like there should be a different save option other than IMAGES ONLY but that is the only option I'm given.

  • Office 2013 applications cannot be made to show the "Documents" folder when opening and saving files

    (Windows Server 2012R2 and Windows 8.1 PRO)
    We are redirecting the user's "Documents" folder to the network (using Folder Redirection). The OS hides this fact however, and most applications simply see the "Documents" folder when opening or saving files, including Office 2003.
    Office 2013 however displays the actual path, which in this case is:
    \\sever1\redirect$\username\documents
    Even if you forcibly set the "Default local file location:"  in the Options Save area to the 'Documents' folder in, say, Word, Word immediately converts the local path to the network path.
    Is there anyway to get Office 2013 to follow the virtual path? All of other apps follow it and expose the users only to "Documents".
    Thank you so much.
    Dana

    There's nothing in my FAQ concerning screen savers, so I'm unsure why you decided to take that approach. From your description, it looks like you only tried a few of the suggestions before throwing in the towel. That's fine, it's your call.
    I don't have the problems you described with 10.4.7. Usually when folks have problems after an update, these are caused by either installing an update on an already-corrutped system or they've installed third-party applications or hardware that have been rendered incompatible by the update.
    Before installing software updates, you may wish to consider the advice in my "Installing Software Updates" FAQ. Taking the steps therein before installing an update often helps avert problems and gives you a fallback position in case trouble arises.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X
    Note: The information provided in the link(s) above is freely available. However, because I own The X Lab™, a commercial Web site to which some of these links point, the Apple Discussions Terms of Use require I include the following disclosure statement with this post:
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.

  • HT5824 I've been using numbers for iPad and I accidentally deleted a column. And the auto-save feature saved that and now I can't undo it. Does iCloud storage have backups of saved files from like 10 minutes ago? I have number

    I've been using numbers for iPad and I accidentally deleted a column. And the auto-save feature saved that and now I can't undo it. Does iCloud storage have backups of saved files from like 10 minutes ago? I have numbers synced to iCloud.
    I tried to undo it but the app crashed.
    I am hoping there's like a previously saved version of my file in iCloud somewhere. 

    No, iOS does not do short term incremental back ups to iCloud such as you get with Time Capsule.It backs up when you do soo manually, or if set properly, when the device is plugged in and connected to WiFi. It will not have saved your changes as of 10 minutes prior.

  • How can I revert to a previous saved file?

    Hi,
    I have been working on Word for Mac 2011 and have been saving continuously onto the same document as my work progresses. I always reference manually and somebody suggested I use footnotes to reference. This was too problematic as I needed to reference separately
    at the end of three sections and footnotes was only allowing me one lot of references. So I copied and pasted my other two sections underneath the footnote referencing  and Word must have assumed it was part of the footnotes because when I completed my
    work and went back to re-reference each section manually and delete the old footnote references, I lost all my work done underneath the footnotes! Now, I hear you can "revert to previous saved file" or some other such thing  to go back to a
    previous save of the same document. Any help is greatly appreciated on how to do this!!
    Thanks,
    Ayema

    If you haven't saved the document, pressing Command+Z will undo the paste.
    If you have already saved the file then hopefully you have the option set in preferences to Always Create a Backup and in the folder where the original file is locate you will find a file name "Backup of..." the file name you are working on. This
    will be a how the file looked prior to the last save.
    If you don't have the Always Create a Backup option set, besides "Shame on You" then go to your Time Machine backup which should be no more than 1-hour old and you can get previous hours... assuming you have that function enable. If you don't then
    again... Shame on You!
    If you have neither of these built-in options set then I pray you are using my
    GotUrBack application running, which will protect you with up to 9 levels of backup of your saved version of the file.
    http://www.greatcirclelearning.com/zapps-got-ur-back
    And if you don't have any of the above set or running then I'm sorry to have to say... you are out of luck and have a great deal of file recreation to do.
    Kind Regards, Rich ... http://greatcirclelearning.com

  • Error in saving file. this is an usual error.

    "error in saving file. this is an unusual error. perhaps some computer maintenace is required"
    This notice keeps coming up whenever i try and save an audio file, which i have generated with "final vinyl".
    I have no idea what to do next. If anyone has any suggestions i would be most grateful.
    Adnan Sharaf

    That could make them up to 300 MB a piece, since that's the same format used by CDs. I would backup your data, and check to make sure the directory is in good shape as my FAQ explains:
    http://www.macmaps.com/backup.html
    http://www.macmaps.com/directoryfaq.html

  • CS6 & OSX 10.6.8 - saving files directly to the server does not work (most of the time)

    Hi there,
    we just switched from OSX 10.5.8 to 10.6.8
    OSX was installed on a new partition of the harddisk
    Then installed CS 5
    Then installed CS 6 via (adobe creative cloud)
    With CS6 we got also the problem with saving files to the server (program error)
    It happens mostly with photoshop, sometimes with Illustrator.
    I read a lot of posting regarding the same problem but didn´t found a real solution yet.
    I am also wondering that there seems to be no solution for this now, because most of the posting i read are 1 year old.
    Working locally is not really an acceptable workaround for us or anyone who needs to work with Creative Suite in a professional way.
    Our MACs…
    MAC Pro 4.1
    OSX 10.6.8
    Virtualized Server Solaris 10 with Helios UB+
    connected to server with afp://Server IP Adress
    Adobe Software
    CS 5 & CS 6
    Here´s some additional information from the osx system profiler:
    Hardware-Übersicht:
      Modellname:          Mac Pro
      Modell-Identifizierung:          MacPro4,1
      Prozessortyp:          Quad-Core Intel Xeon
      Prozessorgeschwindigkeit:          2,26 GHz
      Anzahl der Prozessoren:          2
      Gesamtzahl der Kerne:          8
      L2-Cache (pro Kern):          256 KB
      L3-Cache (pro Prozessor):          8 MB
      Speicher:          10 GB
      Geschwindigkeit für Prozessorverbindungstyp:          5.86 GT/s
      Boot-ROM-Version:          MP41.0081.B07
      SMC-Version (System):          1.39f5
      SMC-Version (Prozessormodul):          1.39f5
      Seriennummer (System):          CK9120Z98Q0
      Seriennummer (Prozessormodul):          J590807P51LUC    
      Hardware-UUID:          30149BDB-582E-583A-B776-59A6DEA2A32C
    Ethernet 1:
      Typ:          Ethernet
      Hardware:          Ethernet
      BSD-Gerätename:          en0
      IPv4-Adressen:          192.9.200.120
      IPv4:
      Adressen:          192.9.200.120
      Konfigurationsmethode:          Manuell
      Schnittstellen-Name:          en0
      Netzwerksignatur:          IPv4.Router=192.9.200.203;IPv4.RouterHardwareAddress=00:30:48:ba:70:30
      Router:          192.9.200.203
      Teilnetzmasken:          255.255.255.0
      DNS:
      Such-Domains:          floramedia.int
      Serveradressen:          192.9.200.7, 194.25.0.68
      Ethernet:
      MAC-Adresse:          00:23:df:df:96:e1
      Medienoptionen:          Voll-Duplex
      Medien-Untertyp:          1000baseT
      Proxies:
      Ausnahmeliste:          *.local, 169.254/16
      Passiver FTP-Modus:          Ja
      Reihenfolge der Dienste:          0
    Überblick über die Systemsoftware:
      Systemversion:          Mac OS X 10.6.8 (10K549)
      Kernel-Version:          Darwin 10.8.0
      Startvolume:          MAC_OSX_10_6_x_SNOW-LEOPARD
      Startmodus:          Normal
      Gerätename:          Freelancers Mac Pro 10.6.8
      Benutzername:          DENNIS (freelancer)
      Sicherer virtueller Speicher:          Nicht aktiviert
      64-Bit-Kernel and -Erweiterungen:          Nein
      Zeit seit dem Start:          8:09

    Hi franverdi-
    It sounds like you've run into issues from the upgrade. I've found a Support article that helps with issues of not being able to connect after an upgrade:
    [[Cannot connect after upgrading Firefox]]
    I hope that helps!

  • Saving files for metro apps in Windows 8/8.1 when printing

    Hi,
    I have a query regarding saving files for metro apps Windows 8/8.1.
    Metro apps saves the file automatically  to the Document folder when we print.
    But I would like to save the files into a recommened folder like C:\users\tmp\
    Please suggest me, is there a way to save the files to a particular folder for metro apps in Windows 8/8.1.
    Thanks in Advance
    Regards
    Toshik12

    As far as I know (and I may be wrong), there's no built-in file saving when printing documents.  How are you confirming that?
    You can save the file anywhere you want, as long as the user chooses the folder location using the FolderPicker.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

Maybe you are looking for

  • Unable to print the report in second page

    Hi, I've got a problem in the report. Here In a report, I'm able to print the report's data in the first page only. I'm unable to print it in the second page,third page etc. To rectify the problem, I've selected all the fields and set their property

  • How to disable MacBookPro's Display?

    For certain reasons I have my macbookpro in room B, while I work in Room A with external display and bluetooth keyboard and mouse.  I know if I close the display when I power up the machine then the macbook pro display will be disabled. But I often f

  • About parameter: "SD_SWU_ACTIVE"

    Hi All, You may have seen in ECC the services for object button (Generic Object Services - GOS) is missing from the sales order. This can be useful to find related IDOCS but was taken off in 4.7 due to performance reasons. If you set user profile/par

  • Adobe Frozen on Ipad

    Hello Adobe has frozen on my ipad I cannot use it, or install the update, or remove it and re-install any suggestions?

  • TS3989 no photos on iCloud

    I don't see photos in iCloud, even with photo stream on on devices.