TweetFollow Us on Twitter

Advanced Tables with AppleScript Studio

Volume Number: 23 (2007)
Issue Number: 07
Column Tag: Programming

Advanced Tables with AppleScript Studio

Learn how to support editable tables and drag-and-drops

By José R.C. Cruz

Introduction

In a previous article, Building a Table View Project in AppleScript Studio;, Benjamin Waldie showed how to use AppleScript Studio to display tabular data. He demonstrated how to use Interface Builder to prepare a table view. He then showed how to use the table's data source property to display the desired data.

Today, we will take the subject of table views a few steps further. First, we will look into the concept of editable tables. We will learn two types of editing modes and how to implement each type. Second, we will look into the concept of table drags and drops. We will learn how to support drag-and-drop operations within the table as well as outside of the table.

At the time of this writing, Apple does not provide any useful instructions on the subject of table editing, and table drag-and-drops. It is hoped that this article will serve as an effective substitute. Also, as a bonus, readers can download the Xcode project, MoreTables, from the following MacTech URL.

http://www.mactech.com/articles/mactech/Vol.21/21.12/TableViewProject/index.html

This project implements many of the concepts shown in this article. It requires version 2.4.1, or newer, of the Xcode environment.

Editing Tabular Data

Types of editing modes

Editable table views can support at least one of two possible modes: inline and panel editing. Each mode differs on the amount of data to be edited. Also, each mode can be had on the same table on a per column basis. Choose the type most suited for the data at hand.

In inline editing, the target data is edited directly on the table cell itself (Figure 1). Users start an edit session by clicking on the desired cell. They then end the session in one of two ways. First, they can press the TAB key, which move the edit focus to a different cell on the table. Second, they can press the ENTER key, which keeps the focus on the same cell. Either way, the table view will display any changes made to target data.


Figure 1. Editing table data inline

Inline editing is suitable if the data fits within the visual area of the table cell. It also requires fewer resources since it is already built into the table view. But there are cases where the data is larger than the size of its cell. There are also cases where the data to be edited is part of a larger set. For these cases, the most suitable form is panel editing.

In panel editing, the table displays the target data on a separate view like a dialog or a window (Figure 2). That view can either be modal or non-modal depending on the design goals. Alternatively, the table can also display the data on a separate set of fields residing on the same view as the table.


Figure 2. Editing data on a separate panel

Users start an edit session by double-clicking on the desired cell. They then end the session in one of two ways. First, they can click on a pushbutton widget to close the view. Second, they can click on the view's close widget, which again closes the view.

How the users close the view also determines if the changes to the target data are saved into the table's data source. For instance, simply closing the view discards any changes made to the data. But clicking on the Enter pushbutton updates the data source with those changes.

As mentioned earlier, panel editing is preferred if the target data is part of a larger set. One good example is a table of addresses. The street address can have one or more lines of text. Also, editing the address may also require editing the city or state entries as well.

Panel editing is also preferred if the target data does not fit the size of the table cell. Again, a good example is a table of addresses. If table space is limited, only a portion of the street address will be visible to the users at a time. Using inline editing, users will have to use the left/right arrow keys to see and edit the rest of the address text. This can be inconvenient if the length of the text is quite substantial.

Implementing inline editing

To implement inline editing, first make sure that the target table column is editable. The best way to check is to double-click on the column in Interface Builder and choose Show Inspector from the Tools menu. Then, from the Attributes panel, make sure that the Editable checkbox is set (Figure 3).


Figure 3. Setting the Editable attribute.

Next, double-click on the entire table view itself. Again, choose Show Inspector from the Tools menu, and then choose AppleScript from the panel's drop down list. Scroll down until the Table View checkbox comes into view. Click on the disclosure triangle to display a list of event handlers. Then click to select the cell value changed handler (Figure 4). Make sure to select the correct AppleScript source file before saving the changes made to the table view.


Figure 4. Selecting the cell value changed handler.

The cell value changed handler (shown below) takes four labeled parameters.

         on cell value changed aTbl row aRow table column aCol
         value aVal

The aTbl parameter is a reference to the table view calling the handler. The aRow parameter is the index of the table row being edited. The aCol parameter is a reference to the table column being edited. Finally, the aVal parameter is the edited cell value itself.

Listing 1 shows one way to use this handler. In this example, the handler validates the changes made to the file sizes displayed by the table view.

The handler first retrieves the selected table row. Next, it retrieves the contents of the cell ftyp from that table row. If that cell has the string value "Folder", the handler checks aVal to see if it is set to "n/a". If this is not the case, the handler then sets the value of the cell fsiz for that table row back to "n/a".

Now if the cell ftyp is not set to "Folder", the handler checks to see if aVal is set to a non-negative value. If this is not the case, the handler then sets the cell fsiz for that table row to zero.

Listing 1. Handling a change in a table cell value.

on cell value changed aTbl row aRow table column aCol value aVal
   local tRow, tTyp, tOrg
   
   -- check the current item type
   set tRow to selected data row of aTbl
   set tTyp to contents of the data cell "ftyp" of tRow
   
   -- validate the data change
   if (tTyp is equal to "Folder") then
      if (aVal is not equal to "n/a") then
         set the contents of the data cell "fsiz" of tRow to "n/a"
      end if -- (aVal is not equal to "n/a")
   else
      try
         set tOrg to aVal as integer
         if (tOrg is less than 0) then
            set the contents of the data cell "fsiz" of tRow to 0
         end if -- (tOrg is less than 0)
      on error
         set the contents of the data cell "fsiz" of tRow to gTemp
      end try
   end if -- (tTyp is equal to "Folder")
end cell value changed -- aTbl row aRow table column aCol value aVal

A problem with the cell value changed handler is that it does not preserve the previous cell value. Once the handler is invoked, the aVal parameter already contains the new value for that cell. One way to solve this is to add a selection changed handler using Interface Builder. Then implement the handler as shown in Listing 2.

This handler is invoked each time users selects a row on the table view. It retrieves the contents of the cell fsiz, and stores its value into the global variable gTemp. The cell value changed handler then set the cell fsiz with the contents of gTemp each time an error occurs.

Listing 2. Storing the previous cell value.

global gTemp
on selection changed aTbl
   local tRow
   
   -- retrieve the selected row
   set tRow to selected data row of aTbl
   
   -- buffer the data value
   set gTemp to the contents of the data cell "fsiz" of tRow
end selection changed -- aTbl

Since one of the handler's parameters is a reference to a table view, it is possible for more than one table views to call the same handler. If this is the case, make sure to identify which table is calling the handler at that time. The best way to do so is to retrieve the name property of the view.

   set tNom to name of aTbl as string

Make sure as well to recast the property value as a string before performing the ID tests. Failing to do so can result into some interesting errors.

Implementing panel editing

To implement panel editing, first make sure that the target table column is not editable. To do so, display the Inspector panel for that column, and clear the Enabled checkbox (Figure 5). Then choose AppleScript from the panel's drop down list, and click to select the double clicked handler for the entire table view.


Figure 5. Clearing the Editable attribute.

The double clicked handler (shown below) takes a single input argument. That argument, aTbl, is a reference to the calling table view.

      on double clicked aTbl

But other table views can call then above handler. Other UI controls that are not table views can also call that same handler. One way to identify which control made the call is to use an if...then construct.

   if (the class of aTbl is table view) then
      set tNom to the name of aTbl
      if (tNom is equal to "oTbl") then
         -- your code goes here
      end if -- (tNom is equal to "oTbl")
   end if -- (the class of aTbl is table view)

In the above example, the first if...then block retrieves and tests the class of aTbl. If aTbl is a table view, the second block retrieves and tests the name property. Then, if aTbl has the correct name of "oTbl", the code for that table view is executed.

Listing 3 shows one way to implement panel editing with the double clicked handler. First, the handler retrieves the row and column index of the double-clicked table cell. Next, it is retrieves the contents of that cell. It then displays the data on a modal dialog to the users for editing. Once users have edited the data, they click on the Enter pushbutton to commit the changes back to the table. The handler then updates the table cell with the updated value.

Listing 3. Handling a double-click event.

on double clicked aTbl
   local tRow, tCol, tDat
   local tMsg
      
   try
      -- initialize the following locals
      set tRow to clicked row of aTbl as string
      set tCol to clicked column of aTbl as integer
      
      -- check the selected data column
      if (tCol is equal to 1) then
         -- retrieve the original string
         set tRow to selected data row of aTbl
         set tDat to contents of data cell "fnom" of tRow
         
         -- prompt the user for a new string
         display dialog pNewName default answer tDat ¬ 
            buttons pBtnList default button "Enter"
         
         -- retrieve the new string data
         set tDat to result
         if (button returned of tDat is equal to "Enter") then
            set tDat to text returned of tDat
            
            -- update the data source
            set the contents of data cell "fnom" of tRow to tDat
         end if -- (button returned of tDat is equal to "Enter")
      end if -- (tCol = 1)
      
   on error tErr number tNum
      -- did the user cancelled the edit session?
      if not (tNum is equal to -128) then
         set tMsg to "[Error] MoreTables:double clicked:"
         set tMsg to tMsg & tErr & "(" & (tNum as string) & ")"
         display dialog tMsg buttons {"OK"}
      end if -- not(tNum is equal to -128)
   end try
end double clicked -- aTbl

Notice that the above example uses the display dialog command to serve the editing panel. This dialog generates the error signal -128 when users click on the Cancel pushbutton. To correctly process the signal, the handler uses a try...end try block. The on error sub-block traps any errors generated by the code. If it identifies the error as a -128, the sub-block quietly ignores the error signal. Otherwise, it displays a description of the error using a modal dialog.

Combining inline and panel editing

As stated earlier, a table view can support inline and panel editing modes on a per column basis. All that is required is to use the Show Inspector panel (Figure 5), and set or clear the Enabled checkbox for each table column.

For instance, the table view in the MoreTables project has the Editable checkbox cleared for the Name and Type column. Then it has the same checkbox set for the Size column. So, when users double-click on a cell in the Name column, the table view starts a panel editing session. But when users click on a cell in the Size column, the table view starts an inline editing session.

However, if users try to double-click on a cell in the Type column, the table view does not start a panel editing session. Though the double-click event is routed to the correct handler, it is rejected by the code since it occurred in the wrong column. Examine the first if...then construct in Listing 5 to see how this is done.

Dragging and Dropping Tabular Data

Getting started

Drag-and-drop actions are another way of managing tabular data. Users can select a row or column on the table view and drag them to a new location on the same table view. Users can also drag those same selections and drop them onto a different table view. And in some cases, users can drag those selections off the table's parent view. Doing so will cause the table view to delete those selections from its data source.

In fact, the table view itself already supports the dragging and dropping of table columns. All it requires is to set the Column Ordering checkbox on the Show Inspector panel (Figure 6) for the entire view. But the table view does not have the same level of support for dragging and dropping table rows. Enabling this feature will require some effort on our part.


Figure 6. Enabling column reordering.

The drag info object

The drag info object (Figure 13) is the main component of all drag-and-drop operations. It carries all the information that describes the operation. The object has a number of useful properties and methods. But the most interesting one is the pasteboard property.


Figure 7. Structure of the drag info object.

The pasteboard property (Figure 15) serves as the container for drag-and-drop data. It can carry a wide range of data, from integer values to lists or records. The property consists of two parts. The first part is a list of type signatures for each data it carries. The second part is the data itself.


Figure 8. Structure of the pasteboard object.

Now the drag-and-drop process sets most of the properties of the drag info object. In fact, the only property that should be set by code is the pasteboard. To demonstrate, assume the variable tClip as the pasteboard property. To store the string "Hello world" into the pasteboard, use the following code statements.

   set preferred type of tClip to "string"
   set content of tClip to "Hello World"
To retrieve the string from the pasteboard, use the following code statements.
   set preferred type of tClip to "string"
   get the content of tClip

But the drag info object only allows read-access to its pasteboard property. A separate handler is needed to store data into that property. This handler is described in the next subtopic.

Preparing the drag event

The table view must first be prepared to support drag-and-drop operations. To do so, select the view in Interface Builder and choose Show Inspector from the Tools menu. Then click to select the handlers shown in Figure 17.


Figure 9. Selecting the drag-and-drop handlers

Next, the table view needs to register the correct data types. To do so, use the Show Inspector panel to select the awake from nib handler for that view. Then update the handler with the code statements shown below.

on awake from nib aTbl
   tell aTbl to register drag types {"rows", "file names"}
end awake from nib -- aTbl

In the above example, the table view aTbl registered two data types: rows and file names. The first type refers to selected table rows, the second to selected files.

The prepare table drag handler (shown below) is executed at the start of a drag event. This handler initializes the drag info object. It takes three input parameters.

   on prepare table drag aTbl drag rows aRows pasteboard aClip

The parameter aTbl is the table view that started the drag event. The parameter aRows are the table rows selected by users. It contains not the row indices but the actual row data themselves. Lastly, the parameter aClip is the pasteboard object. It is through this parameter that the drag info object gets its pasteboard property set to the right data.

Listing 4 shows how to use this handler. Here, the handler sets the preferred data type for the pasteboard aClip to "rows". Next, it sets the contents of aClip to the selected table rows. The handler then returns a true to allow the drag event to continue. But if it needs to abort the event, perhaps due to an error, the handler should then return a false.

Listing 4. Starting a drag event

on prepare table drag aTbl drag rows aRows pasteboard aClip
   -- set the following properties
   set preferred type of aClip to "rows"
   set content of aClip to aRows
   
   -- return a true to continue the drag
   return (true)
end prepare table drag --  aTbl drag rows aRows pasteboard aClip

Preparing for a drop event

The prepare table drop handler (shown below) is executed at the start of a drop event. It also initializes the drag info object. The handler takes four input parameters.

   on prepare table drop aTbl drag info aDat row aRow drop operation anOp

The parameter aTbl is the table view accepting the dragged data. The parameter aDat is the drag info object initialized by the prepare table drag handler. The parameter aRow is the location where the dragged data will be dropped.

Finally, the parameter anOp is the drop mode. If this parameter is set to 0, the data will be placed on the selected row. But if it is set to 1, the default mode, the data will be placed above the selected row.

Error! Reference source not found. shows one way to use this handler. The handler first sets the default drag operation to no drag. Next, it retrieves the type of data stored in the drag info's pasteboard. If the data is a list of table rows, the handler returns a move drag operation. This means the data is placed at the new locale and removed from the old one.

On the other hand, if the data is a list of filenames, the handler returns a copy drag operation. This means the data is still placed at the new locale. But it is not removed from the old locale, if applicable.

Listing 5. Starting a drop event

on prepare table drop aTbl drag info aDat row aRow drop operation anOps
   local tTyp, tDrg   
   -- set the default operation
   set tDrg to no drag operation
   
   -- check the type of drop operation
   if (anOps is equal to 1) then
      -- set the type of drag operation to use
      set tTyp to types of pasteboard of aDat
      
      if (tTyp contains "rows") then
         set tDrg to move drag operation
      else if (tTyp contains "file names") then
         set tDrg to copy drag operation
      end if -- (tTyp contains "rows")
   end if -- (anOps is equal to 1)
   
   -- return the desired drag operation
   return (tDrg)
end prepare table drop -- aTbl drag info aDat drop operation anOps row aRow

Handling the drop event

The accept table drop handler (shown below) is executed after the drop event. Its purpose is to take the dragged data, and place it correctly on the table view. The handler takes four input parameters.

   on accept table drop aTbl drag info aDat drop operation anOps row aRow

The aTbl parameter is the table view accepting the dragged data. The aDat parameter is the drag info object. The anOps operation is the drop operation specified by the prepare table drop handler. Finally, the aRow parameter is the row where the dragged data will be placed.

Listing 6 shows one way to use this handler. In this example, the dragged data is a selection of table rows being moved to a new location.

The handler first disables aTbl's ability to update itself. It then counts the number of table rows present and sets the local tTmp to a null list. Next, the handler compares aRow against the number of table rows. It uses the results of the comparison to set the final drop location on the table view.

The handler then retrieves the pasteboard contents of aDat. It appends each data as a table row to the local tTmp. Once done, the handler then adds the contents of tTmp to the table view. Finally, it enables aTbl's update mode, thus refreshing the table's list of data.

Listing 6. Handling a selection of table rows

on accept table drop aTbl drag info aDat drop operation ¬
anOps row aRow
   local tDst, tSrc, tTmp
   local tCnt, tRow, tTyp, tRec
      
   -- initialize the following locals
   set tTyp to types of pasteboard of aDat
   set tSrc to data source of aTbl
   set tCnt to count of data rows in tSrc
   set tTmp to {}
   
   -- disable the table update event
   set update views of tSrc to false
   
   -- determine where to place the new row
   if (aRow > tCnt) then
      -- place the new row at the end of the list
      set tDst to missing value
   else
      -- place the row above the target row
      set tDst to the data row aRow of tSrc
   end if -- (aRow > tCnt)
   
   -- determine what type of data is being dragged
   if (tTyp contains "rows") then
      -- drag:type:table:row
      -- retrieve the following table data
      set the preferred type of the pasteboard of aDat to "rows"
      set tCnt to the contents of the pasteboard of aDat
      
      -- create a copy of the table data source contents
      repeat with tRow in tCnt
         copy data row tRow of tSrc to the end of tTmp
      end repeat -- with tRow in tCnt
      
      -- add the moved row entry
      repeat with tRow in tTmp
         -- determine if the moved entry should be inserted or appended
         if (tDst is equal to the missing value) then
            -- drag:row:operation:append
            move tRow to end of data rows of tSrc
         else
            -- drag:row:operation:insert
            move tRow to before tDst
         end if -- (tRow is equal to the missing value)
      end repeat -- with tRow in tTmp
      
   else if (tTyp contains "file names") then
      -- drag:type:file:name
      -- ...see Listing 12...
   end if -- (tTyp is equal to "rows")
   
   -- enable the table update event
   set update views of tSrc to true
   
   -- return a true to continue the drop
   return true
end accept table drop -- aTbl drag info aDat drop operation anOps row aRow

Listing 7 shows a different way of using the accept table drop handler. In this case, the dragged data consists of a selection of files from the Finder.

First, the handler follows the same steps to retrieve the dragged data from the drag info object aDat. It then retrieves the POSIX path to each file and converts it to a MacOS path format. Next, the handler calls the getInfo utility method. This method retrieves the Finder information for each file, and returns the results as a record. The handler then adds a new data row to the table view and updates that row with the Finder information. Finally, the handler enables aTbl's update mode, which refreshes its data display.

Listing 7. Handling a selection of files

on accept table drop aTbl drag info aDat drop operation anOps row aRow
   local tDst, tSrc, tTmp
   local tCnt, tRow, tTyp, tRec
   
   -- initialize the following locals
   set tTyp to types of pasteboard of aDat
   set tSrc to data source of aTbl
   set tCnt to count of data rows in tSrc
   set tTmp to {}
   
   -- disable the table update event
   set update views of tSrc to false
   
   -- determine where to place the new row
   if (aRow > tCnt) then
      -- place the new row at the end of the list
      set tDst to missing value
   else
      -- place the row above the target row
      set tDst to the data row aRow of tSrc
   end if -- (aRow > tCnt)
   
   -- determine what type of data is being dragged
   if (tTyp contains "rows") then
      -- drag:type:table:row
      -- see Listing 10...
   else if (tTyp contains "file names") then
      -- drag:type:file:name
      -- retrieve the list of selected files
      set the preferred type of the pasteboard of aDat to "file names"
      set tCnt to the content of the pasteboard of aDat
      
      if (the (count of tCnt) is greater than 0) then
         repeat with tRow in tCnt
            -- retrieve the info record
            set tRec to POSIX file tRow as text
            set tRec to getInfo for tRec
            
            if not (tRec is null) then
               -- determine if the new entry should be inserted or appended
               if (tDst is equal to the missing value) then
                  -- drag:file:operation:append
                  set tTmp to make new data row at end of data rows of tSrc
               else
                  -- drag:file:operation:insert
                  set tTmp to make new data row at before tDst
               end if -- (tRow is equal to the missing value)
               
               
               -- update the table entry
               set the contents of the data cell "fnom" ¬
                     of tTmp to the fnom of tRec
               set the contents of the data cell "ftyp" ¬
                     of tTmp to the ftyp of tRec
               set the contents of the data cell "fsiz" ¬
                     of tTmp to the fsiz of tRec
            end if -- not (tRec is null) 
         end repeat -- with tRow in tCnt
      end if -- (the count of tCnt is greater than 0)
   end if -- (tTyp is equal to "rows")
   
   -- enable the table update event
   set update views of tSrc to true
   
   -- return a true to continue the drop
   return true
end accept table drop -- aTbl drag info aDat drop operation anOps row aRow

Concluding Remarks

Table views are an integral part of many AppleScript applications. They allow users to view their data in a structured tabular form. They also allow users to edit specific data items or move them to a new locale.

AppleScript Studio helps in making an editable table view easy to support. Users can either edit the data directly on the table view, or on a separate panel view. Drag and drops on table views are also easily done with AppleScript Studio. User can use drag-and-drops to rearrange table columns or rows. Users can also use them to add data from a separate application, such as the Finder, to a table view.

Thanks to AppleScript Studio, table views can be an effective and flexible way of presenting data to users.

Bibliography and References

Apple Computers. "Data View Suite:Table View". AppleScript Studio Terminology Reference. Copyright 2006. Apple Computers, Inc.

Apple Computers. "Drag and Drop Suite:Drag Info Class". AppleScript Studio Terminology Reference. Copyright 2006. Apple Computers, Inc.

Apple Computers. AppleScript Studio 1.4 Release Notes. Copyright 2005. Apple Computers, Inc.

Benjamin S. Waldie. "Building a Table View Project in AppleScript Studio". MacTech Magazine. Volume 21, Issue 12. Online:

http://www.mactech.com/articles/mactech/Vol.21/21.12/
TableViewProject/index.html


JC is a freelance engineering writer currently residing in North Vancouver, British Columbia. He divides his time between writing technical articles, and teaching origami at his local district's public library. He can be reached at anarakisware@icmail.com.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Tokkun Studio unveils alpha trailer for...
We are back on the MMORPG news train, and this time it comes from the sort of international developers Tokkun Studio. They are based in France and Japan, so it counts. Anyway, semantics aside, they have released an alpha trailer for the upcoming... | Read more »
Win a host of exclusive in-game Honor of...
To celebrate its latest Jujutsu Kaisen crossover event, Honor of Kings is offering a bounty of login and achievement rewards kicking off the holiday season early. [Read more] | Read more »
Miraibo GO comes out swinging hard as it...
Having just launched what feels like yesterday, Dreamcube Studio is wasting no time adding events to their open-world survival Miraibo GO. Abyssal Souls arrives relatively in time for the spooky season and brings with it horrifying new partners to... | Read more »
Ditch the heavy binders and high price t...
As fun as the real-world equivalent and the very old Game Boy version are, the Pokemon Trading Card games have historically been received poorly on mobile. It is a very strange and confusing trend, but one that The Pokemon Company is determined to... | Read more »
Peace amongst mobile gamers is now shatt...
Some of the crazy folk tales from gaming have undoubtedly come from the EVE universe. Stories of spying, betrayal, and epic battles have entered history, and now the franchise expands as CCP Games launches EVE Galaxy Conquest, a free-to-play 4x... | Read more »
Lord of Nazarick, the turn-based RPG bas...
Crunchyroll and A PLUS JAPAN have just confirmed that Lord of Nazarick, their turn-based RPG based on the popular OVERLORD anime, is now available for iOS and Android. Starting today at 2PM CET, fans can download the game from Google Play and the... | Read more »
Digital Extremes' recent Devstream...
If you are anything like me you are impatiently waiting for Warframe: 1999 whilst simultaneously cursing the fact Excalibur Prime is permanently Vault locked. To keep us fed during our wait, Digital Extremes hosted a Double Devstream to dish out a... | Read more »
The Frozen Canvas adds a splash of colou...
It is time to grab your gloves and layer up, as Torchlight: Infinite is diving into the frozen tundra in its sixth season. The Frozen Canvas is a colourful new update that brings a stylish flair to the Netherrealm and puts creativity in the... | Read more »
Back When AOL WAS the Internet – The Tou...
In Episode 606 of The TouchArcade Show we kick things off talking about my plans for this weekend, which has resulted in this week’s show being a bit shorter than normal. We also go over some more updates on our Patreon situation, which has been... | Read more »
Creative Assembly's latest mobile p...
The Total War series has been slowly trickling onto mobile, which is a fantastic thing because most, if not all, of them are incredibly great fun. Creative Assembly's latest to get the Feral Interactive treatment into portable form is Total War:... | Read more »

Price Scanner via MacPrices.net

Early Black Friday Deal: Apple’s newly upgrad...
Amazon has Apple 13″ MacBook Airs with M2 CPUs and 16GB of RAM on early Black Friday sale for $200 off MSRP, only $799. Their prices are the lowest currently available for these newly upgraded 13″ M2... Read more
13-inch 8GB M2 MacBook Airs for $749, $250 of...
Best Buy has Apple 13″ MacBook Airs with M2 CPUs and 8GB of RAM in stock and on sale on their online store for $250 off MSRP. Prices start at $749. Their prices are the lowest currently available for... Read more
Amazon is offering an early Black Friday $100...
Amazon is offering early Black Friday discounts on Apple’s new 2024 WiFi iPad minis ranging up to $100 off MSRP, each with free shipping. These are the lowest prices available for new minis anywhere... Read more
Price Drop! Clearance 14-inch M3 MacBook Pros...
Best Buy is offering a $500 discount on clearance 14″ M3 MacBook Pros on their online store this week with prices available starting at only $1099. Prices valid for online orders only, in-store... Read more
Apple AirPods Pro with USB-C on early Black F...
A couple of Apple retailers are offering $70 (28%) discounts on Apple’s AirPods Pro with USB-C (and hearing aid capabilities) this weekend. These are early AirPods Black Friday discounts if you’re... Read more
Price drop! 13-inch M3 MacBook Airs now avail...
With yesterday’s across-the-board MacBook Air upgrade to 16GB of RAM standard, Apple has dropped prices on clearance 13″ 8GB M3 MacBook Airs, Certified Refurbished, to a new low starting at only $829... Read more
Price drop! Apple 15-inch M3 MacBook Airs now...
With yesterday’s release of 15-inch M3 MacBook Airs with 16GB of RAM standard, Apple has dropped prices on clearance Certified Refurbished 15″ 8GB M3 MacBook Airs to a new low starting at only $999.... Read more
Apple has clearance 15-inch M2 MacBook Airs a...
Apple has clearance, Certified Refurbished, 15″ M2 MacBook Airs now available starting at $929 and ranging up to $410 off original MSRP. These are the cheapest 15″ MacBook Airs for sale today at... Read more
Apple drops prices on 13-inch M2 MacBook Airs...
Apple has dropped prices on 13″ M2 MacBook Airs to a new low of only $749 in their Certified Refurbished store. These are the cheapest M2-powered MacBooks for sale at Apple. Apple’s one-year warranty... Read more
Clearance 13-inch M1 MacBook Airs available a...
Apple has clearance 13″ M1 MacBook Airs, Certified Refurbished, now available for $679 for 8-Core CPU/7-Core GPU/256GB models. Apple’s one-year warranty is included, shipping is free, and each... Read more

Jobs Board

Seasonal Cashier - *Apple* Blossom Mall - J...
Seasonal Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Seasonal Fine Jewelry Commission Associate -...
…Fine Jewelry Commission Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) Read more
Seasonal Operations Associate - *Apple* Blo...
Seasonal Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Read more
Hair Stylist - *Apple* Blossom Mall - JCPen...
Hair Stylist - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.