> From: [EMAIL PROTECTED]
> Reply-To: [EMAIL PROTECTED]
> Date: Mon, 31 Jan 2000 13:05:52 -0800 (PST)
> To: [EMAIL PROTECTED]
> Subject: Digest metacard.v003.n222
> 
> Scott,
> I believe you are talking about the  File/Import/Snapshot command in
> Metacard - just click on "Take snapshot" (make sure you have the target
> window positioned beforehand). I use this for quick/small projects as it
> embeds the graphic automatically into MC. For larger projects it might be
> better to use a referenced folder of images...which leads me to my question:
> 
> When importing images using File/Import/Images, can they only be imported
> one at a time??? This is incredibly tedious and time consuming. There is a
> marvelous invention called 'multi-select' which would make my life much
> easier...this is standard in many image importing programs. Has anyone found
> a way around this?
> 
> Also, for future reference the checkbox that has the label "don't import" is
> bad U.I. It should read "externally reference" or something less misleading.
> 
> Blair Moxon

Hi Blair.  While the stack below is a bit bloated in that it does some
things I needed it to do for a project I worked on, you can edit it to fit
your needs.  At least you will get the jist of it.  Enjoy!

-Mark Talluto
KIDware Technologies



 set the defaultstack to **your stack name**
    
    --Get folder first
    answer file "Please select a file in the folder you wish to import:"
    put it into tfolder
    if it is empty then exit **your handler**
    
    --Separate the path
    set itemdel to "/"
    delete last item of tfolder
    set the directory to tfolder
    
    --Create temporary field to hold names of files
    lock screen
    go card 1
    new field "import folder"
    set the rect of field "import folder" to 244,26,376,426
    set the visible of field "import folder" to false
    put the files into field "import folder"
    
    --Go to last card
    put the number of cards into tlast
    go card tlast
    if exists (image 1 of card tlast) then
      new card "untitled"
    end if
    
    --Figure out how many images are to be imported
    put the number of lines of field "import folder" of card 1 into
timagecount
    
    --Start line counter for field "import folder"
    put 1 into tcounter
    
    repeat timagecount
      --Set up path for image to be imported
      put line tcounter of field "import folder" of card 1 into temp
      put "/" after tfolder
      put temp after tfolder
      
      --Import the files
      import paint from file tfolder
      
      --Name the image
      put the number of images into temp
      set the name of image temp to tfolder
    
      --Increment tcounter variable by 1
      new card
      add 1 to tcounter
      delete last item of tfolder
    end repeat
    unlock screen
    
    --DELETE HIDDEN FIELD ON CARD 1
    delete field "import folder" of card 1
    put the number of cards into temp
   


This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm

Reply via email to